oauth2 supports. (#4551)

This commit is contained in:
Garfield Dai
2024-05-21 17:52:41 +08:00
committed by GitHub
parent f32bba6531
commit c873035084
4 changed files with 38 additions and 3 deletions

View File

@@ -7,3 +7,7 @@ export const getUserSAMLSSOUrl = () => {
export const getUserOIDCSSOUrl = () => {
return get<{ url: string; state: string }>('/enterprise/sso/oidc/login')
}
export const getUserOAuth2SSOUrl = () => {
return get<{ url: string; state: string }>('/enterprise/sso/oauth2/login')
}