Can disable code_challenge for specific clients

This commit is contained in:
Pierre HUBERT 2022-04-15 19:26:17 +02:00
parent cac461e03d
commit 69bb2816b9

View File

@ -153,9 +153,10 @@ pub async fn authorize(user: CurrentUser, id: Identity, query: web::Query<Author
HttpResponse::Found()
.append_header(("Location", format!(
"{}?state={}&session_sate=&code={}",
"{}?state={}&session_state={}&code={}",
session.redirect_uri,
urlencoding::encode(&query.0.state),
urlencoding::encode(&session.session_id.0),
urlencoding::encode(&session.authorization_code)
))).finish()
}