outlook / libnss-aad

A glibc NSS plugin that implements an Azure Active Directory service
MIT License
25 stars 6 forks source link

libnss-aad doesn't cache OAuth2 tokens #1

Open thenewwazoo opened 7 years ago

thenewwazoo commented 7 years ago

At present, libnss-aad acquires a new JWT for each Graph API "transaction". This token includes a bearer token and a refresh token, each of which can be cached. Refresh tokens are faster to renew, as well, so using them can speed up the auth process.

Add support for caching tokens (to disk?).