OIDC with REST-endpoint using "code" query-parameter fails
See original GitHub issueDescribe the bug My service uses OIDC (type=web-app) and has a REST-API /hello?code=abc. The Query-Parameter code conflicts with the OIDC authorization code flow.
DEBUG [io.qua.oid.run.CodeAuthenticationMechanism] (vert.x-eventloop-thread-13) The state cookie is missing after a redirect from IDP
Expected behavior I can use any query-parameter name in my REST API without conflicting with OIDC extension.
Actual behavior The REST API returns wrong response status code.
To Reproduce Follow the steps in the README.md of https://github.com/haraldatbmw/oidc-code-query-parameter
Environment (please complete the following information):
- Quarkus version or git rev: 1.8.3.Final
Issue Analytics
- State:
- Created 3 years ago
- Comments:13 (13 by maintainers)
Top Results From Across the Web
OpenID Connect (OIDC) authorization code flow mechanism
The Authorization Code Flow mechanism authenticates users of your web application by redirecting them to an OIDC provider, such as Keycloak, to log...
Read more >Securing Applications and Services Guide - Keycloak
There are really two types of use cases when using OIDC. The first is an application that asks the Keycloak server to authenticate...
Read more >AM 6 > OpenID Connect 1.0 Guide - ForgeRock Backstage
This guide covers concepts, configuration, and usage procedures for working with OpenID Connect 1.0 and ForgeRock Access Management.
Read more >Query parameters (code, state) not removed after login
... catch (err) { // Initial login sequence failed, handle oidc error here }. You also need to import Location from Angular library...
Read more >OIDC Client with Identity Server 3 not working - Google Groups
my Code is derived from the Spring Boot Demo : ... No still the same error messsage in Identity Server as above. ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@haraldatbmw No problems 😃, the PR should not only allow the custom code/state on the first or re-auth requests, but also let users select the way they want to handle the case where a state cookie is missing, so it is not in vain 😃, and I’d definitely would not consider that enhancement without you opening this issue 😃
@haraldatbmw sorry, have to close this issue - in some cases we just can’t avoid the ambiguity with the code query parameter, we’ve had a long discussion with @pedroigor about it.