Documentation ¶
Index ¶
Constants ¶
View Source
const URIAuthCodeCallback = "/login/auth/callback"
Variables ¶
This section is empty.
Functions ¶
func Initialize ¶
Initialize init the provider(s) successfully, if not, crash it
Types ¶
type Link ¶
Link represents a sso vendor name & the auth code link pair
func AuthCodeLinks ¶
AuthCodeLinks generates the all sso vendor name & the auth code link pairs If the node port equals `0`, which means the login request is not started from the PairMesh node.
type Provider ¶
type Provider interface { Setup(cfg *config.SSO) error AuthCodeURL(redirect, client string) string AccessToken(code string) (*Token, error) UserInfo(token *Token) (*models.User, bool, error) }
Provider represents the sso vendor
Click to show internal directories.
Click to hide internal directories.