mirror of
https://github.com/kanidm/kanidm.git
synced 2025-02-23 12:37:00 +01:00
Add the strict flag on client creates for developers (#3111)
This commit is contained in:
parent
2075125439
commit
8c8f72381f
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue