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

Add support for all authorization request parameters

Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr>
This commit is contained in:
Kévin Commaille
2023-08-05 12:58:06 +02:00
committed by Quentin Gliech
parent e430e9d414
commit c67a00ddd6
3 changed files with 62 additions and 18 deletions

View File

@@ -89,7 +89,6 @@ pub(crate) async fn get(
let data = AuthorizationRequestData {
client_id: &provider.client_id,
scope: &provider.scope,
prompt: None,
redirect_uri: &redirect_uri,
code_challenge_methods_supported: metadata.code_challenge_methods_supported.as_deref(),
};
@@ -98,6 +97,7 @@ pub(crate) async fn get(
let (url, data) = mas_oidc_client::requests::authorization_code::build_authorization_url(
metadata.authorization_endpoint().clone(),
data,
None,
&mut rng,
)?;