Hi,
Is there any sample that demonstrates autheticating the user at run time, ie, login/logout...in most of the samples I have seen so far, to change users you have to change the executionContext's userId attribute in SaaSGrid.cfg.xml, then rebuild...is there anything I am missing here?
Hello,
I assume you are developing your application locally. You are correct in that changing the execution context is one way to "change" which user is currently logged in. You could also use the SaaSGrid Mocker utility, included with the SDK to change this as well, which would eliminate the need to rebuild the application.
With regards to a sample for authenticating a user on a live environment, remember that SaaSGrid does this for you automatically.
Post back with additional comments or questions regarding this, and I can explain this in more detail!
- Paul
Yes I am developing locally...
What I was thinking of was to add simple login page, which would authenticate and set the current user accordingly...
Right; it sounds like this is more of an expression of the need to be able to switch from one user to another without having to re-start the application. Is that correct?
If this is the case then you should definitely use the SaaSGrid Mocker to do this.
If it is more of a question of being able to have a custom page that handles logging in, this functionality will be introduced in the relative near future. We plan on providing an ability to set custom styles for the login page.
Okay, got it....I guess I was misunderstanding some things...I will try deploying some test application to a live sandbox to get a better idea...
Sounds good,
If you need any help along the way dont hesitate to contact us.
Abe