Forum Xamarin.iOS
We are excited to announce that the Xamarin Forums are moving to the new Microsoft Q&A experience. Q&A is the home for technical questions and answers at across all products at Microsoft now including Xamarin!

We encourage you to head over to Microsoft Q&A for .NET for posting new questions and get involved today.

Enable user to Sign In only once using ADAL?


Hi All,

I am using Microsoft ADAL for client authentication, Whenever user sign In the application I want to cache the Token, But Microsoft Authentication Token Expires in 1 hour. 

Whenever user swipe off the Application in Task Bar/ Application Drawer the Activity OnDestroy() method is called and activity is destroyed so, the Auth Token is also destroyed, the headache is When I start the application again I need to Sign In again.

How can I enable user to Sign In only once and if the Activity is destroyed the user should not Sign In again in application.

I have tried to save Auth token in Sqlite, Shared Preference, It works well for only 1 hour but User have to sign in again after 1 hour.

Sign In or Register to comment.