feat: add OIDC subject claim fallbacks

This commit is contained in:
croatialu
2026-04-16 18:07:57 +08:00
parent addef55f30
commit d110dd2bcb
5 changed files with 45 additions and 0 deletions
+7
View File
@@ -217,6 +217,13 @@ integration:
# The scopes to request when authenticating users. The default is below.
# scope: "openid email profile"
# Optional fallback claims to use when your provider does not return a standard
# OIDC `sub` claim. Headplane always checks `sub` first, then each claim here
# in order. For Feishu/Lark, `["open_id", "email"]` is a reasonable fallback.
# subject_claims:
# - "open_id"
# - "email"
# Extra query parameters can be passed to the authorization endpoint
# by setting them here. This is useful for providers that require any kind
# of custom hinting.