Add email_verified check for OIDC login

- Parse email_verified from ID token and UserInfo endpoint
- Reject OIDC login if email is present and not verified
- Only applies when email is in OIDC claims (not required otherwise)
This commit is contained in:
George Wu
2026-02-21 11:40:23 -08:00
parent b8d43c2627
commit 52a47d4b33
3 changed files with 22 additions and 0 deletions
+1
View File
@@ -140,6 +140,7 @@ pub struct OidcTokenSet {
pub struct OidcIdClaims {
pub sub: String,
pub email: Option<String>,
pub email_verified: Option<bool>,
pub preferred_username: Option<String>,
pub name: Option<String>,
pub groups: Vec<String>,