Quantcast
Channel: Azure Active Directory forum
Viewing all articles
Browse latest Browse all 16000

Active Directory Authentication Library and Access Token Expiration

$
0
0

Hello,

I am very new to Azure Active Directory and Authentication. We have a native windows application which needs to be authenticated via AAD. So to educate myself, after reading multiple articles and blogs, got a basic sample application up and running.

The sample application is in C# and uses Active Directory Authentication Library (ADAL) version 3.13.8. The application uses AuthenticationContext class methods to acquire token and extended TokenCache class to have persistent storage of the token.

When I run the application, the application asks for the user name and password and returns token successfully. I am using AcquireTokenAsync() and the token data is saved in a file as I expected.

When I browse the authentication results returned by AcquireTokenAsync method, data for Access token expiration is ALWAYS 6 hours away from the time I accessed the token.

All the documents I read states, by default access token expires in 1 hour. So why am I getting a 6 hour timeframe? Is this something that is configurable via application registration process, which I don't see either.

Can someone help me understand this?

Thank you in advance!

K










AuthenticationContext and

okenCache class to .


Viewing all articles
Browse latest Browse all 16000

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>