idp

package
v0.0.16 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 5, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefIdp         = IDP_AUTHING
	DefIdpProvider = IDP_SUB_TYPE_DB
)

Variables

This section is empty.

Functions

func GetAuthingAppHost

func GetAuthingAppHost(appIdentifier string) string

func GetLoginRedirectUris

func GetLoginRedirectUris() []string

func GetLoginRedirectUrisStr

func GetLoginRedirectUrisStr() string

func IsAuthingAppDynamicMode

func IsAuthingAppDynamicMode() bool

func IsAuthingStaticAppId

func IsAuthingStaticAppId(appId string) bool

func IsEnterpriseIdpProvider

func IsEnterpriseIdpProvider(provider *string) bool

func IsLocalDbIdpProvider

func IsLocalDbIdpProvider(provider *string) bool

like system admin user, only saved in our db, or like authing db user, will also save in our db/copy

func IsLocalIdp

func IsLocalIdp(idp *string) bool

func IsSingleConnProvider

func IsSingleConnProvider(provider *string) bool

one idp just can add single conn, but also can add multiple idp with the same provider such as idp, we can add multiple ldap idp, but each provider just has only one conn

func IsSocialIdpProvider

func IsSocialIdpProvider(provider *string) bool

TODO, lot of types currently not support

Types

type IDPSubType

type IDPSubType = string
const (
	IDP_SUB_TYPE_DB                        IDPSubType = "database"                  // user saved in db
	IDP_SUB_TYPE_LDAP                      IDPSubType = "ldap"                      // enterprise
	IDP_SUB_TYPE_AD                        IDPSubType = "ad"                        // enterprise, windows ad
	IDP_SUB_TYPE_AZURE_AD                  IDPSubType = "azure-ad"                  // enterprise
	IDP_SUB_TYPE_OAUTH2                    IDPSubType = "oauth2"                    // enterprise
	IDP_SUB_TYPE_OIDC                      IDPSubType = "oidc"                      // enterprise
	IDP_SUB_TYPE_CAS                       IDPSubType = "cas"                       // enterprise
	IDP_SUB_TYPE_SAML                      IDPSubType = "saml"                      // enterprise
	IDP_SUB_TYPE_DINGTALK                  IDPSubType = "dingtalk"                  // enterprise
	IDP_SUB_TYPE_DINGTALK_MOBILE           IDPSubType = "dingtalk:mobile"           // enterprise
	IDP_SUB_TYPE_WECHATWORK_CORP_QRCONNECT IDPSubType = "wechatwork:corp:qrconnect" // enterprise
	IDP_SUB_TYPE_WECHATWORK_MOBILE         IDPSubType = "wechatwork:mobile"         // enterprise
	IDP_SUB_TYPE_FEI_BOOK                  IDPSubType = "lark-public"               // enterprise
	IDP_SUB_TYPE_WELINK                    IDPSubType = "welink"                    // enterprise
	IDP_SUB_TYPE_BAIDU                     IDPSubType = "baidu"                     // Social
	IDP_SUB_TYPE_BAIDU_MOBILE              IDPSubType = "baidu:mobile"              // Social
	IDP_SUB_TYPE_GITEE                     IDPSubType = "gitee"                     // Social
	IDP_SUB_TYPE_WECHAT_PC                 IDPSubType = "wechat:pc"                 // Social
)

type IDPType

type IDPType = string
const (
	IDP_NONE    IDPType = "none"
	IDP_LOCAL   IDPType = "sdp-console"
	IDP_AUTHING IDPType = "authing"
	IDP_AUTH0   IDPType = "auth0"
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL