Comments (8)
Hey @Dismissile, pls clarify the following so that I can investigate this
- ADAL plugin version you are using
- Target Cordova platform (iOS, Android or Windows)
- Are you testing on real device or emulator
PS. May be related to
#54 (comment)
#47
from azure-activedirectory-library-for-cordova.
- cordova-plugin-ms-adal 0.6.3-dev
- Android
- Real Device - Samsung Galaxy S4
from azure-activedirectory-library-for-cordova.
Pls let me know Android version installed on Samsung device. (Looks like we see related issue on devices with Android OS 4.2 and below)
from azure-activedirectory-library-for-cordova.
It's Android 5.0.1 Lollipop.
from azure-activedirectory-library-for-cordova.
I've tested plugin on Android L and see that refresh token is returned from server and persisted on device (and then used to update token if I call acquireTokenSilentAsync), but it is NOT exposed to JS as authenticationResultToJSON contains strict list of what should be exposed back (as per spec).
Recommendation here is to call authContext.acquireTokenSilentAsync which should return updated token based on refresh token so you don't need to do any extra work. See example on home page for more details.
@Dismissile, feel free to re-open this issue if you still have any problem.
from azure-activedirectory-library-for-cordova.
@sgrebnov But what about beeing able to save my session or login forever? For that you have to encrypt the refresh-token, save it to your device and reuse it, if the user openes the App AFTER an hour! For that reason: we definetly need the reftesh token!
Please answer my question asap.
Thank you so much.
Rebar
from azure-activedirectory-library-for-cordova.
@Ahmadre - that makes sense, but could you please elaborate why you want to do this manually (including encryption) instead of using special method provided by api - acquireTokenSilentAsync
from azure-activedirectory-library-for-cordova.
@sgrebnov Because I can't use that method, when the mobile phone is on airplane or battery is empty, or or or. And no I definetly don't want to use Background processes, because it sucks too much battery life and while said: if the smartphone is offline: there's no chance to refresh and the accessToken will expire. Or can I use the silent method instead of an expired accessToken?
from azure-activedirectory-library-for-cordova.
Related Issues (20)
- Adal not working in windows UWP app (release mode)
- Microsoft CRM on-Premise log in HOT 1
- Unable to get logged in user mail ID
- Do anyone have alternative solution ? HOT 15
- Cannot read property 'constructor' of undefined HOT 1
- IOS12 App+The user is currently prompted for credentials as result of another acquireToken request. Please retry the acquireToken call later HOT 2
- (ADAL) integration with ionic getting “We are unable to issue tokens” , need to use v 2.0 HOT 1
- Back to my Android App. Ionic 4. Need help please. HOT 8
- requireCordovaModule should be changed to require
- iOS 13.2.3 ms adal not redirect on Microsoft sign in page HOT 1
- ms adal cordova plugin for ionic 4 not compatible with cordova 9.0 and ios 13.2 HOT 13
- msadal - acquireTokenSilentAsync doesn't works until "userId" is passed, even it is optional as per docs. HOT 5
- replace the UiWebView with the WkWebView HOT 1
- [iOS] [help Needed] [Objc] new ms-Adal HOT 8
- [IOS] Plugin not working with IOS 13 HOT 1
- iOS archive cordova-plugin-ms-adal-is-back capacitor HOT 4
- Not receiving role from the token response, as roles were declared from azure
- iOS archive cordova-plugin-ms-adal-is-back capacitor HOT 1
- Any capacitor alternative to this plugin?
- getting "ITMS-90809: Deprecated API Usage" error in ionic 3 ios app
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-cordova.