Skip to content

Commit

Permalink
Additionnal parameters in oidc redirection for ios?
Browse files Browse the repository at this point in the history
  • Loading branch information
Timshel committed Feb 29, 2024
1 parent 7dcb91a commit 8ee852f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/api/identity.rs
Original file line number Diff line number Diff line change
Expand Up @@ -859,7 +859,11 @@ async fn oidcsignin_redirect(state: String, wrapper: sso::OIDCCodeWrapper, conn:
Err(err) => err!(format!("Failed to parse redirect uri ({}): {err}", nonce.redirect_uri)),
};

url.query_pairs_mut().append_pair("code", &code).append_pair("state", &state);
url.query_pairs_mut()
.append_pair("code", &code)
.append_pair("state", &state)
.append_pair("scope", &AuthMethod::Sso.scope())
.append_pair("iss", &CONFIG.domain());

debug!("Redirection to {url}");

Expand Down

0 comments on commit 8ee852f

Please sign in to comment.