From 8ee852fbfe2697dfba3a7dfde5a583d771c6e4cc Mon Sep 17 00:00:00 2001 From: Timshel Date: Thu, 29 Feb 2024 17:38:19 +0100 Subject: [PATCH] Additionnal parameters in oidc redirection for ios? --- src/api/identity.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/api/identity.rs b/src/api/identity.rs index 3276a77f58..23b6090849 100644 --- a/src/api/identity.rs +++ b/src/api/identity.rs @@ -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}");