Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthStyle ¶
type AuthStyle string
const ( // AuthStyleAutoDetect means to auto-detect which authentication // style the provider wants by trying both ways and caching // the successful way for the future. AuthStyleAutoDetect AuthStyle = "AutoDetect" // AuthStyleInParams sends the "client_id" and "client_secret" // in the POST body as application/x-www-form-urlencoded parameters. AuthStyleInParams AuthStyle = "InParams" // AuthStyleInHeader sends the client_id and client_password // using HTTP Basic Authorization. This is an optional style // described in the OAuth2 RFC 6749 section 2.3.1. AuthStyleInHeader AuthStyle = "InHeader" )
type Config ¶
type Config struct {
ClientID string `yaml:"clientID" json:"clientID"`
ClientSecretFile string `yaml:"clientSecretFile" json:"clientSecretFile"`
Scopes []string `yaml:"scopes" json:"scopes"`
AuthURL string `yaml:"-" json:"authURL"`
TokenURL string `yaml:"-" json:"tokenURL"`
AuthStyle AuthStyle `yaml:"authStyle" json:"authStyle"`
Audience string `yaml:"audience" json:"audience"`
RedirectURL string `yaml:"redirectURL" json:"redirectURL"`
AccessType string `yaml:"accessType" json:"accessType"`
ResponseType string `yaml:"responseType" json:"responseType"`
ResponseMode string `yaml:"responseMode" json:"responseMode"`
ClientSecret string `yaml:"-" json:"clientSecret"`
}
TODO cleanup settings AccessType, ResponseType, ResponseMode, AuthStyle - be careful it is used by c2c.
func (Config) AuthCodeURL ¶
func (Config) ToDefaultOAuth2 ¶
Click to show internal directories.
Click to hide internal directories.