mirror of
https://github.com/casdoor/casdoor.git
synced 2025-07-05 05:50:19 +08:00
feat: add saml metadata in application edit page (#750)
* feat: add saml metadata in application edit page Signed-off-by: Yixiang Zhao <seriouszyx@foxmail.com> * Update ApplicationEditPage.js Co-authored-by: Yang Luo <hsluoyz@qq.com>
This commit is contained in:
@ -69,3 +69,10 @@ export function deleteApplication(application) {
|
||||
body: JSON.stringify(newApplication),
|
||||
}).then(res => res.json());
|
||||
}
|
||||
|
||||
export function getSamlMetadata(owner, name) {
|
||||
return fetch(`${Setting.ServerUrl}/api/saml/metadata?application=${owner}/${encodeURIComponent(name)}`, {
|
||||
method: "GET",
|
||||
credentials: "include"
|
||||
}).then(res => res.text());
|
||||
}
|
||||
|
Reference in New Issue
Block a user