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 }