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"` UserJsonUrl string `json:"user_json_url"` UserIDJsonPath string `json:"user_id_json_path"` UserDisplayNameJsonPath string `json:"user_display_name_json_path"` UserUsernameJsonPath string `json:"user_username_json_path"` UserEmailJsonPath string `json:"user_email_json_path"` UserAvatarJsonPath string `json:"user_avatar_json_path"` CheckEmailVerified bool `json:"check_email_verified"` EmailVerifiedJsonPath string `json:"email_verified_json_path"` Scope string `json:"scope"` LogoSVG string `json:"logo_svg"` }
Click to show internal directories.
Click to hide internal directories.