1
0
mirror of https://github.com/matrix-org/matrix-authentication-service.git synced 2025-08-01 20:26:56 +03:00

Replace parse-display with manual Display/FromStr impls

This commit is contained in:
Quentin Gliech
2024-03-19 15:05:50 +01:00
parent 4eeedbef31
commit 7e30daf83e
10 changed files with 334 additions and 168 deletions

View File

@ -463,7 +463,7 @@ impl<'c> OAuth2ClientRepository for PgOAuth2ClientRepository<'c> {
"#,
Uuid::from(id),
encrypted_client_secret,
application_type.map(|a| a.to_string()),
application_type.as_ref().map(ToString::to_string),
&redirect_uris_array,
grant_types.contains(&GrantType::AuthorizationCode),
grant_types.contains(&GrantType::RefreshToken),