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

Method authenticate

src/authenticator/src/oidc.rs:570–578  ·  view source on GitHub ↗
(
        &self,
        token: &str,
        expected_user: Option<&str>,
    )

Source from the content-addressed store, hash-verified

568
569impl GenericOidcAuthenticator {
570 pub async fn authenticate(
571 &self,
572 token: &str,
573 expected_user: Option<&str>,
574 ) -> Result<(ValidatedClaims, Authenticated), OidcError> {
575 let validated_claims = self.inner.validate_token(token, expected_user).await?;
576 self.inner.check_role_login(&validated_claims.user).await?;
577 Ok((validated_claims, Authenticated))
578 }
579}
580
581fn build_openid_config_url(issuer: &str) -> Result<Url, OidcError> {

Callers

nothing calls this directly

Calls 2

validate_tokenMethod · 0.80
check_role_loginMethod · 0.80

Tested by

no test coverage detected