Extract the username from the OIDC claims.
(&self, authentication_claim: &str)
| 242 | impl OidcClaims { |
| 243 | /// Extract the username from the OIDC claims. |
| 244 | fn user(&self, authentication_claim: &str) -> Option<&str> { |
| 245 | self.unknown_claims |
| 246 | .get(authentication_claim) |
| 247 | .and_then(|value| value.as_str()) |
| 248 | } |
| 249 | |
| 250 | /// Extracts group names from the configured JWT claim for group-to-role |
| 251 | /// sync. See [`mz_auth::group_claims::extract_groups`] for semantics. |
no test coverage detected