Add the strict flag on client creates for developers (#3111)

This commit is contained in:
Firstyear 2024-10-16 13:58:57 +10:00 committed by GitHub
parent 2075125439
commit 8c8f72381f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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
}