Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

743 B
Raw Blame
import { get } from './base'

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)
}

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)
}

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)
}