(
&self,
token: &str,
expected_user: Option<&str>,
)
| 568 | |
| 569 | impl 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 | |
| 581 | fn build_openid_config_url(issuer: &str) -> Result<Url, OidcError> { |
nothing calls this directly
no test coverage detected