1
0
mirror of https://github.com/matrix-org/matrix-authentication-service.git synced 2025-11-20 12:02:22 +03:00

Allow running the authentication service on a different base path

This commit is contained in:
Quentin Gliech
2023-09-05 17:51:50 +02:00
parent 9ecb666ec1
commit 9b5c8fb44b
40 changed files with 388 additions and 195 deletions

View File

@@ -38,12 +38,12 @@ mod tests {
#[test]
fn test_relative_urls() {
assert_eq!(
OidcConfiguration.relative_url(),
OidcConfiguration.path_and_query(),
Cow::Borrowed("/.well-known/openid-configuration")
);
assert_eq!(Index.relative_url(), Cow::Borrowed("/"));
assert_eq!(Index.path_and_query(), Cow::Borrowed("/"));
assert_eq!(
Login::and_continue_grant(Ulid::nil()).relative_url(),
Login::and_continue_grant(Ulid::nil()).path_and_query(),
Cow::Borrowed("/login?kind=continue_authorization_grant&id=00000000000000000000000000")
);
}