Comments (4)
ADAL handles cache/expiration for you. You need to set secret key for API<18 to setup encryption. Your app can derive pinpassword or ask user as well to make it more secure. App will set the derived key for encryption.
Are you using "acquireTokenByRefreshToken" to get a token? That will not cache the result and prompt will display for next acquireToken call.
from azure-activedirectory-library-for-android.
No, I use "acquireToken" method.
The flow is:
- User logs in and both tokens acquired.
- Access token expires.
- Refresh token is used to receive new access token and new refresh token, but refresh token is not acquired (has
null
value in AuthenticationResult). - New access token expires.
- Refresh token is null so update fails and user is prompted to log in again.
As I can see, first it checks cache for access token. If it is absent/expired, AADAL checks for refresh token. If refresh token is valid it is used for update (AuthenticationContext.java#L675). When this scenario takes place I don't get new refresh token in AuthenticationResult.
from azure-activedirectory-library-for-android.
I could not get a repro for this. Can you send log entries for that?
from azure-activedirectory-library-for-android.
Recent code does not repro. Please open it if you repro.
from azure-activedirectory-library-for-android.
Related Issues (20)
- Network error when MS endpoints are available
- Gradle Build failing suddenly from VSO HOT 1
- About the handle way on Meizu smart phone HOT 1
- Sporadic ANRs when AuthenticationContext.acquireTokenSilentSync is used. HOT 2
- Request to Protect Authentication Screen HOT 1
- Users need to do Multi Factor authentication multiple times in a day in an internal enterprise application HOT 1
- [ADAL 1.15.1] Return DEVELOPER_AUTHORITY_IS_NOT_VALID_INSTANCE on android 4.0.3 when using proxy wifi HOT 1
- .aar for this project HOT 1
- Sign-in process not detecting Company Portal app on device for some users HOT 5
- Crash report: JsonSyntaxException: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING HOT 1
- ADAL Plugin integration is crashing with proguard true HOT 1
- Crash Report : java.lang.IllegalArgumentException getAuthToken not supported HOT 1
- Can't sign into OneDrive android app due to "battery optimization settings"
- Your app contains a less secure encryption mode HOT 3
- remove debugging code throwing a runtime exception when INTERNET is revoked for compatibility with GrapheneOS Network toggle HOT 1
- Unsafe Cipher Mode HOT 1
- Facing erros related to "cryptography" library when execute in CentOS 7 Python 3.6.12 HOT 1
- ADALError:BROKER_AUTHENTICATOR_NOT_RESPONDING
- Someone's added this feature to my phone
- Attempt to invoke virtual method 'java.security.PrivateKey java.security.KeyPair.getPrivate()' on a null object reference HOT 1
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-android.