question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

OIDC with REST-endpoint using "code" query-parameter fails

See original GitHub issue

Describe 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:closed
  • Created 3 years ago
  • Comments:13 (13 by maintainers)

github_iconTop GitHub Comments

1reaction
sberyozkincommented, Oct 22, 2020

@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 😃

0reactions
sberyozkincommented, Jan 11, 2021

@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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found