lively-scientist-17848
06/13/2023, 3:29 PMshow_verification_ui
hook to run after registration. The relevant part of our identity config then looks like
login:
after:
hooks: []
oidc:
hooks: []
password:
hooks:
- hook: require_verified_address
webauthn:
hooks: []
before:
hooks: []
lifespan: 30m0s
ui_url: /ui/login
registration:
after:
default_browser_return_url: <https://editor.bbeng.dev>
hooks: []
oidc:
hooks:
- hook: show_verification_ui
- hook: session
password:
hooks:
- hook: show_verification_ui
webauthn:
hooks:
- hook: show_verification_ui
- hook: session
Notably I can’t seem to remove the “session” hook from the “oidc” and “webauthn” parts of the registration config.
We are using Oauth2 to manage a user’s login state - with them starting the process by sending them to the Oauth2 authorization endpoint when they are not logged in. A user starts the signup by clicking the Don't have an account? Sign up
link on the login ui.
What happens
When a user registers with this method they are redirected to our oauth redirect URL with a valid code which can be exchanged for an access_token for our APIs, without being prompted to validate their email address.
This only is the behaviour on initial registration, if the user logs in again they are taken to the verification flow as I would expect.
What I would expect to happen
Before being redirect back to our application I would expect them to be prompted to validate their email address.
I can work around this by detecting that the user has an unverified email address and sending them to login again, but this isn’t a particularly good user experience.
Is there something I’ve misconfigured here or is this a bug on your end?limited-photographer-61008
06/13/2023, 3:53 PMlively-scientist-17848
06/14/2023, 12:00 PMfast-lunch-54279
high-optician-2097
bland-eye-99092
06/14/2023, 12:48 PMlively-scientist-17848
06/14/2023, 12:50 PMbland-eye-99092
06/14/2023, 12:51 PMhigh-optician-2097
lively-scientist-17848
06/14/2023, 12:54 PMlimited-photographer-61008
06/14/2023, 12:54 PMbland-eye-99092
06/14/2023, 12:55 PMlively-scientist-17848
06/14/2023, 2:15 PMbland-eye-99092
06/14/2023, 2:22 PM