1
0
mirror of https://github.com/matrix-org/matrix-authentication-service.git synced 2025-11-21 23:00:50 +03:00

Add upstream OAuth 2.0 providers name and branding

This commit is contained in:
Quentin Gliech
2023-11-20 14:49:57 +01:00
parent a5428f10c5
commit 5126d36b2e
21 changed files with 295 additions and 107 deletions

View File

@@ -491,6 +491,8 @@ mod tests {
let provider = UpstreamOAuthProvider {
id: Ulid::nil(),
issuer: "https://valid.example.com/".to_owned(),
human_name: Some("Example Ltd.".to_owned()),
brand_name: None,
discovery_mode: UpstreamOAuthProviderDiscoveryMode::Oidc,
pkce_mode: UpstreamOAuthProviderPkceMode::Auto,
jwks_uri_override: None,

View File

@@ -861,6 +861,8 @@ mod tests {
&state.clock,
UpstreamOAuthProviderParams {
issuer: "https://example.com/".to_owned(),
human_name: Some("Example Ltd.".to_owned()),
brand_name: None,
scope: Scope::from_iter([OPENID]),
token_endpoint_auth_method: OAuthClientAuthenticationMethod::None,
token_endpoint_signing_alg: None,