Enable user to Sign In only once using ADAL?

SHIVANKUCHAUHANSHIVANKUCHAUHAN USMember ✭✭✭

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.