-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Open
Labels
OIDCOpenID Connect related issuesOpenID Connect related issuesbugSomething isn't workingSomething isn't working
Description
Is this a support request?
- This is not a support request
Is there an existing issue for this?
- I have searched the existing issues
Current Behavior
email_verified_required configuration did not block users with unverified email from connecting to tailnet. Additionally, headscale registers the user without email (refer picture).
Expected Behavior
Any users with email_verified: false from the OIDC claim should get the unverified email response from headscale, even though group claim is exist and valid in their OIDC claim. Additionally, headscale should not register the user with unverified email at all, not continuing the registration process without email.
Steps To Reproduce
- Create a new user in your OIDC provider. For example, I created a new user with
fake@email.comin Auth0. - Assign a valid group for the user in your OIDC provider. In my example, I assigned
deta-tech-hqgroup. - Configure headscale with
email_verified_required: trueand adddeta-tech-hqtoallowed_groupsconfiguration. - Now, try to login with Tailscale with the newly created user.
- User with unverified email can access the Tailnet and its resources.
Environment
- OS: Ubuntu 25.04
- Headscale version: 84c092a9f987+dirty (commit: 84c092a9f9875ed274aa40c9c14ebbcb05166f43)
- Tailscale version: 1.88.3Runtime environment
- Headscale is behind a (reverse) proxy
- Headscale runs in a container
Debug information
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
OIDCOpenID Connect related issuesOpenID Connect related issuesbugSomething isn't workingSomething isn't working