fix(oauth2): fix spec discrepancies

This commit is contained in:
Zomatree
2025-06-23 23:47:58 +01:00
parent 9e05e5be7e
commit 3ae25fbcfe
3 changed files with 4 additions and 5 deletions

View File

@@ -12,11 +12,11 @@ use redis_kiss::AsyncCommands;
///
/// Generates an OAuth2 code to be passed to the redirect URI.
#[openapi(tag = "OAuth2")]
#[post("/authorize", data="<info>")]
#[post("/authorize?<info..>")]
pub async fn auth(
db: &State<Database>,
user: User,
info: Form<v0::OAuth2AuthorizationForm>,
info: v0::OAuth2AuthorizationForm,
) -> Result<Json<v0::OAuth2AuthorizeAuthResponse>> {
let bot = Reference::from_unchecked(info.client_id.clone())
.as_bot(db)

View File

@@ -85,4 +85,3 @@ pub async fn token(
}
}
}