1
0
mirror of https://github.com/matrix-org/matrix-authentication-service.git synced 2025-07-29 22:01:14 +03:00

Use ResponseType that doesn't care about tokens order

This commit is contained in:
Kévin Commaille
2022-09-09 14:52:59 +02:00
committed by Quentin Gliech
parent f5715018a6
commit fca6cfa393
10 changed files with 618 additions and 145 deletions

View File

@ -20,7 +20,7 @@ use mas_iana::{
oauth::{OAuthAuthorizationEndpointResponseType, OAuthClientAuthenticationMethod},
};
use mas_jose::jwk::PublicJsonWebKeySet;
use oauth2_types::requests::GrantType;
use oauth2_types::{requests::GrantType, response_type::ResponseType};
use sqlx::{PgConnection, PgExecutor};
use thiserror::Error;
use url::Url;
@ -322,7 +322,7 @@ pub async fn insert_client(
client_id: &str,
redirect_uris: &[Url],
encrypted_client_secret: Option<&str>,
response_types: &[OAuthAuthorizationEndpointResponseType],
response_types: &[ResponseType],
grant_types: &[GrantType],
contacts: &[String],
client_name: Option<&str>,