1
0
mirror of https://github.com/matrix-org/matrix-authentication-service.git synced 2025-11-21 23:00:50 +03:00

Axum migration: /oauth2/authorize

This commit is contained in:
Quentin Gliech
2022-04-06 15:29:35 +02:00
parent 35310849c7
commit 51160faf48
4 changed files with 309 additions and 336 deletions

View File

@@ -16,6 +16,7 @@ use http::status::StatusCode;
use serde::ser::{Serialize, SerializeMap};
use url::Url;
#[derive(serde::Serialize)]
pub struct ClientError {
pub error: &'static str,
pub error_description: &'static str,
@@ -219,7 +220,8 @@ pub mod rfc6749 {
InvalidGrant,
INVALID_GRANT,
code: BAD_REQUEST,
"invalid_grant"
"invalid_grant" =>
"The provided access grant is invalid, expired, or revoked."
}
oauth2_error! {