Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CallbackOutput ¶
type SsoClient ¶
type SsoClient struct { Enable bool Verifier *oidc.IDTokenVerifier Config oauth2.Config SsoAddr string CallbackAddr string CoverAttributes bool DisplayName string Attributes struct { Username string Nickname string Phone string Email string } DefaultRoles []string Ctx context.Context Provider *oidc.Provider sync.RWMutex }
func (*SsoClient) Callback ¶
func (s *SsoClient) Callback(redis storage.Redis, ctx context.Context, code, state string) (*CallbackOutput, error)
Callback 用 code 兑换 accessToken 以及 用户信息,
func (*SsoClient) GetDisplayName ¶
Click to show internal directories.
Click to hide internal directories.