Skip to content

feat: enforce OIDC login restrictions#558

Open
toyorg wants to merge 3 commits into
tale:mainfrom
toyorg:main
Open

feat: enforce OIDC login restrictions#558
toyorg wants to merge 3 commits into
tale:mainfrom
toyorg:main

Conversation

@toyorg
Copy link
Copy Markdown

@toyorg toyorg commented May 14, 2026

Add handling for allowed_domains, allowed_users and allowed_groups in the OIDC callback, redirecting with error_restricted_access if access is denied.
Include a corresponding error message on the login page.
Also fix a test that accessed user without a null check.

Add handling for `allowed_domains` and `allowed_users` in the OIDC
callback, redirecting with `error_restricted_access` if access is
denied.
Include a corresponding error message on the login page. Also fix a test
that accessed `user` without a null check.
@toyorg toyorg requested a review from tale as a code owner May 14, 2026 12:52
@github-actions github-actions Bot added the Authentication Authentication & Permissions label May 14, 2026
@toyorg toyorg changed the title feat: enforce OIDC login restrictions from Headscale config feat: enforce OIDC login restrictions May 14, 2026
toyorg and others added 2 commits May 15, 2026 10:26
Implement OIDC allowed_groups check in addition to existing
allowed_domains and allowed_users restrictions.

Also prevent auto-redirect to OIDC when the login page has an
error state, so users can see the error message before being
redirected.
@github-actions github-actions Bot added the Config Related to Headplane specific configuration label May 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Authentication Authentication & Permissions Config Related to Headplane specific configuration

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant