MCPcopy Create free account
hub / github.com/MaterializeInc/materialize / user

Method user

src/authenticator/src/oidc.rs:244–248  ·  view source on GitHub ↗

Extract the username from the OIDC claims.

(&self, authentication_claim: &str)

Source from the content-addressed store, hash-verified

242impl 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.

Callers 1

validate_tokenMethod · 0.45

Calls 2

getMethod · 0.45
as_strMethod · 0.45

Tested by

no test coverage detected