Can disable code_challenge for specific clients
This commit is contained in:
parent
cac461e03d
commit
69bb2816b9
@ -153,9 +153,10 @@ pub async fn authorize(user: CurrentUser, id: Identity, query: web::Query<Author
|
|||||||
|
|
||||||
HttpResponse::Found()
|
HttpResponse::Found()
|
||||||
.append_header(("Location", format!(
|
.append_header(("Location", format!(
|
||||||
"{}?state={}&session_sate=&code={}",
|
"{}?state={}&session_state={}&code={}",
|
||||||
session.redirect_uri,
|
session.redirect_uri,
|
||||||
urlencoding::encode(&query.0.state),
|
urlencoding::encode(&query.0.state),
|
||||||
|
urlencoding::encode(&session.session_id.0),
|
||||||
urlencoding::encode(&session.authorization_code)
|
urlencoding::encode(&session.authorization_code)
|
||||||
))).finish()
|
))).finish()
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user