You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We’re trying to add authentication through social providers (Google) in a cordova web application (written in angular).
We’re using amplify-js@v6 which removed support for the customisation of the url opening method: urlOpener
Unless we’re mistaken, Google removed the support for authentication through a webview (a while ago), thus the “hard-coded” redirection (through openAuthSession in signInWithRedirect) does not work in webview contexts.
The recommended way seems to be through an in-app browser, but we would need to retrieve the oAuthUrl first, which does not seem possible at the moment through your library.
Do you have any material documenting oAuth authentication and cordova with amplify-js@v6? It seems you have plans regarding the signInWithRedirect method but that's all I could find, would it be possible to elaborate on this subject?
Describe the solution you'd like
We'd like to be able to configure the signInWithRedirect interaction to open an in-app browser instead.
Or at least :
to be able to generate the url ourselves (with the code challenge and state stored, etc...)
or to be able to intercept and prevent the location.hrefredirection (and open the in-app browser in userland code).
Describe alternatives you've considered
Unfortunately, we would consider other providers, such as Firebase which provides explicit Cordova guidance
Additional context
No response
Is this something that you'd be interested in working on?
👋 I may be able to implement this feature request
⚠️ This feature might incur a breaking change
The text was updated successfully, but these errors were encountered:
Hello, @QuentinFchx 👋. We appreciate you creating this issue and will mark it as a feature request to be reviewed with the team. I believe there may be some similar issues in the repo as well, so I'll try to link them to ensure we have broader context for how to implement this feature.
I have the same problem stopping me from upgrading to Amplify@6. We use Capacitor and need to use the Capacitor Browser for federated sign-in. The urlOpener option was critical for that. Is there any expectation that a solution for this will be provided, or is there already one I might just not know about?
Is this related to a new or existing framework?
Angular
Is this related to a new or existing API?
Authentication
Is this related to another service?
No response
Describe the feature you'd like to request
We’re trying to add authentication through social providers (Google) in a cordova web application (written in angular).
We’re using amplify-js@v6 which removed support for the customisation of the url opening method:
urlOpener
Unless we’re mistaken, Google removed the support for authentication through a webview (a while ago), thus the “hard-coded” redirection (through openAuthSession in signInWithRedirect) does not work in webview contexts.
The recommended way seems to be through an in-app browser, but we would need to retrieve the oAuthUrl first, which does not seem possible at the moment through your library.
Do you have any material documenting oAuth authentication and cordova with amplify-js@v6?
It seems you have plans regarding the
signInWithRedirect
method but that's all I could find, would it be possible to elaborate on this subject?Describe the solution you'd like
We'd like to be able to configure the
signInWithRedirect
interaction to open an in-app browser instead.Or at least :
location.href
redirection (and open the in-app browser in userland code).Describe alternatives you've considered
Unfortunately, we would consider other providers, such as Firebase which provides explicit Cordova guidance
Additional context
No response
Is this something that you'd be interested in working on?
The text was updated successfully, but these errors were encountered: