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

Allow setting a different issuer from the public base URL

This commit is contained in:
Quentin Gliech
2023-06-26 17:36:40 +02:00
parent 5fc4303470
commit 125a6bdf11
8 changed files with 25 additions and 10 deletions

View File

@@ -326,6 +326,9 @@ pub struct HttpConfig {
/// Public URL base from where the authentication service is reachable
pub public_base: Url,
/// OIDC issuer URL. Defaults to `public_base` if not set.
pub issuer: Option<Url>,
}
impl Default for HttpConfig {
@@ -364,6 +367,7 @@ impl Default for HttpConfig {
}],
},
],
issuer: Some(default_public_base()),
public_base: default_public_base(),
}
}