Oidc-client-js: Consider removing Cordova support in 2.0

Created on 22 Jan 2018  路  8Comments  路  Source: IdentityModel/oidc-client-js

This issue is to gauge the current level of Cordova use and find out how painful this will be if Cordova is removed. Feedback welcome.

enhancement

Most helpful comment

Would maybe moving the cordova specifics into its own repo as pluggable components help? So those who want cordova include both libraries and setup via configuration as usual perhaps?

All 8 comments

Well I for one use it a lot in all my Ionic apps. Happy to fork and go my own way though but then it'll end up a private repo I guess.

Would maybe moving the cordova specifics into its own repo as pluggable components help? So those who want cordova include both libraries and setup via configuration as usual perhaps?

Using it

I'd be for removing it as the implementation (InAppBrowser approach) is no longer recommended for native/hybrid apps.

I just landed here because I wanted to consider this repo for use it in my cordova application.

I also read that the InAppBrowser is no longer recommended but what else to use? SafariViewController/ChromeCustomTabs? I am doing this, but ChromeCustomTabs does not support hidden windows, so I can't have token refreshment... so I am stuck to inAppBrowser at least for Android

so I can't have token refreshment

For native apps you'd use hybrid flow (and PKCE), and thus you'd be able to use refresh tokens.

Thanks for the answer. Our application is also running in the browser, therefore we are using the implicit flow. As far as I understand it, we can't use both flows (using Azure) without doubling our Azure B2C endpoint. Do you probably know a solution for this?

Sorry, I can't help you with AB2C. But still, if your app is considered native (like cordova) then it should use hybrid and PKCE with the system browser (and not implicit with an embedded browser), as recommended by this: https://tools.ietf.org/html/rfc8252

Was this page helpful?
0 / 5 - 0 ratings

Related issues

LEW21 picture LEW21  路  4Comments

tomeinar picture tomeinar  路  3Comments

eckersalld picture eckersalld  路  5Comments

m-andrew-albright picture m-andrew-albright  路  5Comments

arnaldo-infinite picture arnaldo-infinite  路  4Comments