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

policy: only require redirect_uris for the authorization_code and implicit grants

This commit is contained in:
Quentin Gliech
2023-09-05 12:12:45 +02:00
parent c85f5f2768
commit d16b880267
4 changed files with 99 additions and 33 deletions

View File

@@ -366,12 +366,9 @@ async fn test_oauth2_client_credentials(pool: PgPool) {
let request =
Request::post(mas_router::OAuth2RegistrationEndpoint::PATH).json(serde_json::json!({
"client_uri": "https://example.com/",
// XXX: we shouldn't have to specify the redirect URI here, but the policy denies it for now
"redirect_uris": ["https://example.com/callback"],
"contacts": ["contact@example.com"],
"token_endpoint_auth_method": "client_secret_post",
"grant_types": ["client_credentials"],
"response_types": [],
}));
let response = state.request(request).await;