Hello!
Anyone got any bright ideas on how to implement a user validation from a webservice.
We are not going to keep any user information in the local database. The users must be validated via a webservice from another system.
But we want to keep information about the administrators, editors etc. in the cuyahoga database.
Thanks!
Best regards,
JK
This is an interesting topic.
We already have a pluggable IAuthenticationService and IUserService, but until now, there is one big issue and that's linking external users to internal roles. Currently this is done via the cuyahoga_user_role table, but external users don't have a user id (without duplicating these in the cuyahoga_user table).
So to make this work, we probably have to add a column with an external ID to cuyahoga_user_role or something. Haven't really thought about it though, so I might be overlooking some things.
Hey,
This is a classic problem and revolves around SSO and Federation.
Then an Identity Agent in the middle to broker identity trust etc.
The solution i use is similar to what martin is saying.
The solution (in my humble opinion :) ) is to store the Users with a reference GUID ito the use and the id of the system, that authenticates th user also (this depends if you federating though of course).
There are other solutions too.
The reality is that inevitably you will need to do data level authorisation and so you need a users to roles to data mapping.
Hence, the users are and roles must be phantom deletable and a background sync server hooks into the the identity provider to make users and role are inactive as appropriate. Its just a classic master slave pattern really.
i feel there is not much that you have to change in Cuya to make this work.
This is because it is so well architected in a abstract extensible way. Pats on backs !!!...
If you want my 2 cents worth, XMPP is going to revolutionise this as Google and Yahoo are now using it.
i have just finished implementing it with a huge system and its performance indexes are scary. A million concurrent users of just a few servers.
THe old SAML and CAML federation tickets stuff is so old school now thank god.
G
The answer to your question was not really answered though.
Web servcice authentication in >nET involves writing a Module that looks for SOAP headers. A SOAP formatter is used.
In this way you DONT have to add the user name and password to the WS iAPI you expose.
The question of sessions also comes into play, because no cookie is there to use.
So, instead you return back a token back on the response header of the soap call.
The client has to reuse this token that is given to them in the header.
Thats it.
Teh other way around is to NOT use sessions for WS. This is quite common and there are very few use cases i see where a session is neede for WS.
hope this helsp.
G