Skip to content

Commit 1811926

Browse files
authored
remove prompt=consent from oidc scope (#1753)
1 parent a56e509 commit 1811926

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎src/handlers/http/oidc.rs‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ pub async fn login(
9696
let scope = PARSEABLE.options.scope.to_string();
9797
let mut auth_url: String = client.read().await.auth_url(&scope, Some(redirect)).into();
9898

99-
auth_url.push_str("&access_type=offline&prompt=consent");
99+
auth_url.push_str("&access_type=offline");
100100
return Ok(HttpResponse::TemporaryRedirect()
101101
.insert_header((actix_web::http::header::LOCATION, auth_url))
102102
.finish());
@@ -153,7 +153,7 @@ pub async fn login(
153153
.await
154154
.auth_url(&scope, Some(redirect))
155155
.into();
156-
auth_url.push_str("&access_type=offline&prompt=consent");
156+
auth_url.push_str("&access_type=offline");
157157
HttpResponse::TemporaryRedirect()
158158
.insert_header((actix_web::http::header::LOCATION, auth_url))
159159
.finish()

0 commit comments

Comments
 (0)