This project has moved and is read-only. For the latest updates, please go here.

using ADAL.NET User credential Prompt each time for form based authentication

Jan 7, 2014 at 11:12 AM
Hi Guys,

I am using sample from following link.

I am using the sample to for single sing on with ADFS 2012 R2. When I open the client application first time, the ADFS sign in page open and ask for credential(username, password) I entered and I got the access token. Now this client application remains open and I open another instance of same application on same machine and hit the button, it again asked for credential. In my view it should not ask password and same token should be return that is what I am thinking about Single sing instead of entering the password again and again? Please help me to clarify this?
Jan 7, 2014 at 8:22 PM
For this to work you must have a way of passing the login token/state/cookie from one instance of the application to another. In the browser things like cookies are shared between tabs, so it remembers that you were already logged in. Apps don't normally share data like that. Win8's WebAuthBroker might do this for you:
Jan 8, 2014 at 6:57 AM
My requirement is not Windows 8 because this require my customer to upgrade to new OS?

Before the Web Authentication broker how SSO work? How token/state/cookie are managed? Is there any other way to manage it because my most of client app's are windows desktop app's.
Jan 8, 2014 at 5:20 PM
I'm not aware of any other built in mechanism for handling this. The only thing I can think of is to save the shared token to a temp file to make it accessible to other instances of the application. Just make sure to delete the temp file when closing the application.