2024-05-15 16:14:49 +08:00
|
|
|
import { get } from './base'
|
|
|
|
|
2024-10-21 09:23:20 +08:00
|
|
|
export const getUserSAMLSSOUrl = (invite_token?: string) => {
|
|
|
|
const url = invite_token ? `/enterprise/sso/saml/login?invite_token=${invite_token}` : '/enterprise/sso/saml/login'
|
|
|
|
return get<{ url: string }>(url)
|
2024-05-15 16:14:49 +08:00
|
|
|
}
|
|
|
|
|
2024-10-21 09:23:20 +08:00
|
|
|
export const getUserOIDCSSOUrl = (invite_token?: string) => {
|
|
|
|
const url = invite_token ? `/enterprise/sso/oidc/login?invite_token=${invite_token}` : '/enterprise/sso/oidc/login'
|
|
|
|
return get<{ url: string; state: string }>(url)
|
2024-05-15 16:14:49 +08:00
|
|
|
}
|
2024-05-21 17:52:41 +08:00
|
|
|
|
2024-10-21 09:23:20 +08:00
|
|
|
export const getUserOAuth2SSOUrl = (invite_token?: string) => {
|
|
|
|
const url = invite_token ? `/enterprise/sso/oauth2/login?invite_token=${invite_token}` : '/enterprise/sso/oauth2/login'
|
|
|
|
return get<{ url: string; state: string }>(url)
|
2024-05-21 17:52:41 +08:00
|
|
|
}
|