Skip to content
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]: Getting stuck on code verification (missing auth redirect flow) #7954

Open
2 tasks done
akaegi opened this issue May 15, 2024 · 1 comment
Open
2 tasks done
Labels
auth bug Something isn't working resources

Comments

@akaegi
Copy link

akaegi commented May 15, 2024

Preflight Checklist

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

Environment

ZITADEL Cloud

Version

v2.51.4

Database

None

Database Version

No response

Describe the problem caused by this bug

When a user registers with the default Zitadel registration form inside our mobile app and instead of entering the code manually in the app clicks the "Verify E-Mail" button in the code E-Mail, the user is first sent to the browser and then not redirected to the app. Even worse, the app is "stuck" on the enter code page and the only option to the confused user is to cancel the registration.

To reproduce

  1. Open app with configured auth_redirect_flow_cut
  2. Do token exchange with prompt=create
  3. Create user
  4. When asking to enter code navigate to the E-Mail app (on iOS device or another device)
  5. Click "Verify E-Mail" button in E-Mail

Screenshots

auth_redirect_flow_cut2.mp4

Expected behavior

The user is correctly redirected back to the app or at least the app (Zitadel registration form) automatically transitions to the "successfull login page".

The releated issue #7504 fixes this for Android (if E-Mail button is clicked on the same device) but not for iOS and if the E-Mail button is clicked on another device.

As a quick workaround, disabling the button "E-Mail verifizieren" in the verification code E-Mail would be helpfull as well.

Operating System

Device: iOS Simulator
App: Flutter app using oidc library and OAuth AuthCode+PKCE flow

Relevant Configuration

No response

Additional Context

No response

@akaegi akaegi added the bug Something isn't working label May 15, 2024
@akaegi
Copy link
Author

akaegi commented May 15, 2024

Possible solution IMO:
Zitadel registration form polls Zitadel API for successfull E-Mail verification when on verification screen.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auth bug Something isn't working resources
Projects
Status: 🧐 Investigating
Development

No branches or pull requests

2 participants