Skip to content

[Bug]: OAauth authRequestsIds from the Zitadel API are not handled anymore since they have no "oidc_" prefix #454

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

Open
1 of 2 tasks
Diginut-GmbH opened this issue May 7, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@Diginut-GmbH
Copy link

Diginut-GmbH commented May 7, 2025

Preflight Checklist

  • I could not find a solution in the documentation, the existing issues or discussions
  • I have joined the ZITADEL chat

Version

No response

Describe the problem caused by this bug

I am triggering an OAuth flow like described here: https://zitadel.com/docs/guides/integrate/login-ui/oidc-standard.

Like described in the documentation, the Zitadel API returns me an authRequestId like V2_224908753244265546 (prefixed with "V2_"). But the login app of the latest version (commit sha of main: d5695a0) only handles authRequestIds prefixed with saml_ or oidc_. See:

if (requestId.startsWith("oidc_")) {

To reproduce

Steps to reproduce:

  1. Get an authRequestId like:
https://login.example.com/oauth/v2/authorize?client_id=170086824411201793%40yourapp&redirect_uri=https%3A%2F%2Fyourapp.example.com%2Fauth%2Fcallback&response_type=code&scope=openid%20email%20profile&code_challenge=9az09PjcfuENS7oDK7jUd2xAWRb-B3N7Sr3kDoWECOY&code_challenge_method=S256&login_hint=minnie-mouse
  1. Use the authRequestId to login the user like:
https://login.example.com/loginname?organization=<organizationId>&client=<clientId>&requestId=<authRequestId>&state=<state>

Also see: https://zitadel.com/docs/guides/integrate/login-ui/oidc-standard

@Diginut-GmbH Diginut-GmbH added the bug Something isn't working label May 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: No status
Development

No branches or pull requests

1 participant