-
Notifications
You must be signed in to change notification settings - Fork 115
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug: Error: ERR_GENERAL (1000 - invalid request - duplicated parameter) #219
Comments
I am seeing this issue also on android - it seems a 'nonce' is being automatically added to the request - so when we try to add nonce manually, it is being duplicated. However it does not seem that this package deals with automatically generating a nonce so im not sure how its ending up in the request.
EDIT: the duplicated parameter is being generated by the AuthorizationRequest.Builder class from the AppAuth library |
Capacitor version:
Run
npx cap doctor
:Library version:
OAuth Provider:
Your Plugin Configuration
I needed to add
nonce
manually, it is generated like this:Affected Platform(s):
AndroidManifest.xml
Current Behavior
The app is building and loading up fine in the emulator.
When I initiate the login process using a button, nothing happens in the app.
The following log is in chrome://inspect:
Logcat snippet from the time when the button was clicked:
Log highlighs:
Expected Behavior
Initiate authentication by opening the keycloak SSO login page.
Other Information
This is a simple Capacitor + VueJS test app.
Android redirectUrl was saved as valid redirect uri in keycloak.
On the platform Web the Keycloak login page is opened correctly, login works and the server gives a response containing the access_token.
iOS was not tested at all at this stage.
The text was updated successfully, but these errors were encountered: