Documentation ¶
Index ¶
- type Connector
- func (g *Connector) ConfigFields() []plugin.ConfigField
- func (g *Connector) ConfigReceiver(config []byte) error
- func (g *Connector) ConnectorLogoSVG() string
- func (g *Connector) ConnectorName() plugin.Translator
- func (g *Connector) ConnectorReceiver(ctx *plugin.GinContext, receiverURL string) (userInfo plugin.ExternalLoginUserInfo, err error)
- func (g *Connector) ConnectorSender(ctx *plugin.GinContext, receiverURL string) (redirectURL string)
- func (g *Connector) ConnectorSlugName() string
- func (g *Connector) Info() plugin.Info
- type ConnectorConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Connector ¶
type Connector struct {
Config *ConnectorConfig
}
func (*Connector) ConfigFields ¶
func (g *Connector) ConfigFields() []plugin.ConfigField
func (*Connector) ConfigReceiver ¶
func (*Connector) ConnectorLogoSVG ¶
func (*Connector) ConnectorName ¶
func (g *Connector) ConnectorName() plugin.Translator
func (*Connector) ConnectorReceiver ¶
func (g *Connector) ConnectorReceiver(ctx *plugin.GinContext, receiverURL string) (userInfo plugin.ExternalLoginUserInfo, err error)
func (*Connector) ConnectorSender ¶
func (g *Connector) ConnectorSender(ctx *plugin.GinContext, receiverURL string) (redirectURL string)
func (*Connector) ConnectorSlugName ¶
type ConnectorConfig ¶
type ConnectorConfig struct { Name string `json:"name"` ClientID string `json:"client_id"` ClientSecret string `json:"client_secret"` AuthorizeUrl string `json:"authorize_url"` TokenUrl string `json:"token_url"` UserInfoUrl string `json:"user_info_url"` UserIDClaim string `json:"user_id_claim"` UserDisplayNameClaim string `json:"user_display_name_claim"` UserUsernameClaim string `json:"user_username_claim"` UserEmailClaim string `json:"user_email_claim"` UserAvatarClaim string `json:"user_avatar_claim"` CheckEmailVerified bool `json:"check_email_verified"` EmailVerifiedClaim string `json:"email_verified_claim"` Scope string `json:"scope"` LogoSVG string `json:"logo_svg"` }
Click to show internal directories.
Click to hide internal directories.