dify/web/service/sso.ts

14 lines
375 B
TypeScript
Raw Normal View History

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