From 8c8f72381f70399f848e473ac716f1c3c3b1377b Mon Sep 17 00:00:00 2001 From: Firstyear Date: Wed, 16 Oct 2024 13:58:57 +1000 Subject: [PATCH] Add the strict flag on client creates for developers (#3111) --- libs/client/src/oauth.rs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/libs/client/src/oauth.rs b/libs/client/src/oauth.rs index e95a9e3f6..9e0257b63 100644 --- a/libs/client/src/oauth.rs +++ b/libs/client/src/oauth.rs @@ -36,6 +36,10 @@ impl KanidmClient { ATTR_OAUTH2_RS_ORIGIN_LANDING.to_string(), vec![origin.to_string()], ); + new_oauth2_rs.attrs.insert( + ATTR_OAUTH2_STRICT_REDIRECT_URI.to_string(), + vec!["true".to_string()], + ); self.perform_post_request("/v1/oauth2/_basic", new_oauth2_rs) .await } @@ -57,6 +61,10 @@ impl KanidmClient { ATTR_OAUTH2_RS_ORIGIN_LANDING.to_string(), vec![origin.to_string()], ); + new_oauth2_rs.attrs.insert( + ATTR_OAUTH2_STRICT_REDIRECT_URI.to_string(), + vec!["true".to_string()], + ); self.perform_post_request("/v1/oauth2/_public", new_oauth2_rs) .await }