Angular-oauth2-oidc: Cordova InappBrowser and Capacitor Browser

Created on 3 Apr 2020  路  4Comments  路  Source: manfredsteyer/angular-oauth2-oidc

How do I implement the Cordova InappBrowser or Capacitor Browser in the library?
In an Ionic app when I click Login I am directed to open chrome.
I didn't want that behavior.
How to keep the user within the application?
Thanks.

question

All 4 comments

Sorry to hear you're having problems. Afraid this isn't really the right place to ask a broad question about how to integrate several different technologies with this library, especially with so little to go on for us. I sympathize, this stuff can be complicated, but the community here is thin and mostly focused on bugs and feature requests for the library. I recommend talking to a colleague, consultant, or a broader forum. (In those cases, they will also likely need more to go on than just the above text.)

Kind regards, good luck,
Jeroen

Thank you Jeron. I expressed myself badly. It would help me a lot to know exactly where in the library that calls the website page of the authentication server. My idea is to change the code to incorporate one of these libraries reported above so that the behavior on a mobile device is as natural as possible.

I am developing a mobile application Ionic that uses your library to authenticate to an oauth server. The problem is when I run the application on a smart phone and when trying to login, android asks to open a browser, in this case chrome. There are solutions that can be joined to this library for use on mobile devices. This solution would help a lot, a lot of people.

Anyway, thank you very much for your attention and congratulations on your great work.

https://cordova.apache.org/docs/en/latest/reference/cordova-plugin-inappbrowser/

https://capacitor.ionicframework.com/docs/apis/browser/

Thanks for your thoughtful response! I think I got the general question you're trying to ask, it's just way to broad, I'm afraid. If you're looking for bits of code, most of it is in the OAuthService class, and you could of course step through it in your application in debug mode. If you're looking for a tutorial on how to integrate the various pieces, you might be the first one to write one...

Will leave the issue open for a while, but I think the community is too thin to get you useful feedback here. We'll see.

I found another library that meets the requirements mentioned above by me for perfect functioning on a mobile device.

'https://github.com/wi3land/ionic-appauth'

Was this page helpful?
0 / 5 - 0 ratings