Comments (3)
Thanks a lot for the explanation. It is clear now and does make a lot of sense. Feel free to close this issue!
I was confused as I was assuming that a refresh token was best practice, because it could be leaner or maybe because credentials must not be sent again - but it seems it is only thought for User-Interaction.
from azure-activedirectory-library-for-java.
@SErfkamp This is expected behavior. Refresh tokens is an oauth artifact introduced to try and reduced the number of times that end users are being prompted and asked to grant permissions. For flows where the is no user involved (for example ClientCredentials, in which a token is issued to the application and not an user itself), having a refresh token provides no real value (Since there wouldn't be any difference in between using a refresh token to get a new access token, and just acquiring a new access token)
Although you could schedule a job, it is not necessary (This all depends on your application). You could just check if the access token is expired before using it, and if so, just acquire a new one, the same way in which you acquired the one that is expired.
from azure-activedirectory-library-for-java.
Also I would recommend you take a look at MSAL, a new library that builds on ADAL and adds a lot of great features. Although ADAL is not being deprecated, we will not add any more features to it going forward.
from azure-activedirectory-library-for-java.
Related Issues (20)
- Create QuickStart sample HOT 1
- daemon certificate credential HOT 2
- "The server was unable to process the request due to an internal error" when using app-only auth with only client ID and client secret HOT 3
- AdalCallable logs ERROR when acquireToken fails HOT 2
- Tokens generated using adal 1.2.0 (python) works but those generated using adal4j 1.6.0 do not Azure Active Directory App Integration and Development HOT 10
- object aad is not a member of package com.microsoft HOT 3
- x509CertThumbprint is deprecated HOT 2
- Make library dependencies have an upper version limit. HOT 7
- "AADSTS700003: Device object was not found in the tenant" issue started since the beginning of September HOT 3
- MSAL Java AcquireToken service is returning invalid access token sometimes in MSAL java web HOT 1
- Confusion arises when using Graph, Office combined permission to get access Token HOT 2
- adal4j with java 6 HOT 7
- can use it for SCIM HOT 1
- java.lang.NoClassDefFoundError: com/nimbusds/oauth2/sdk/http/CommonContentTypes HOT 1
- Latest adal4j 1.6.6 uses oauth2-oidc-sdk 7.4 which is vulnerable to XXE Injection HOT 3
- Vulnerability introduced by com.nimbusds:oauth2-oidc-sdk v9.4
- CVE Issue in ADAL4j's oauth2-oidc-sdk dependency
- Dependency error due to jCenter() outage
- Impact of Azure AD Graph API deprecation
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from azure-activedirectory-library-for-java.