Feat/enterprise sso (#3602)
This commit is contained in:
parent
d9f1a8ce9f
commit
4481906be2
30 changed files with 518 additions and 21 deletions
14
web/service/enterprise.ts
Normal file
14
web/service/enterprise.ts
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
import { get } from './base'
|
||||
import type { EnterpriseFeatures } from '@/types/enterprise'
|
||||
|
||||
export const getEnterpriseFeatures = () => {
|
||||
return get<EnterpriseFeatures>('/enterprise-features')
|
||||
}
|
||||
|
||||
export const getSAMLSSOUrl = () => {
|
||||
return get<{ url: string }>('/enterprise/sso/saml/login')
|
||||
}
|
||||
|
||||
export const getOIDCSSOUrl = () => {
|
||||
return get<{ url: string; state: string }>('/enterprise/sso/oidc/login')
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue