Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ProviderInfo ¶
type ProviderInfo struct {
// contains filtered or unexported fields
}
ProviderInfo contains all required oauth2 information for the shellicator.
func NewAuth0Provider ¶
func NewAuth0Provider(clientID, clientSecret, endpointURL string, scopes ...string) *ProviderInfo
NewAuth0Provider creates a new ProviderInfo for the auth0 endpoints.
func NewGoogleProvider ¶
func NewGoogleProvider(clientID, clientSecret string, scopes ...string) *ProviderInfo
NewGoogleProvider creates a new ProviderInfo for the google oauth endpoint.
func NewProvider ¶
func NewProvider(clientID, clientSecret, oidcDiscoverURL string, scopes ...string) *ProviderInfo
NewProvider creates a new ProviderInfo according the well-known openid configuration provided by the specified discovery endpoint.
If device grant is used, client secret can be an empty string.
func (ProviderInfo) DeviceAuthURL ¶
func (p ProviderInfo) DeviceAuthURL() string
DeviceAuthURL returns the device grant authorization url.
func (ProviderInfo) OAuth2Config ¶
func (p ProviderInfo) OAuth2Config() oauth2.Config
OAuth2Config returns the oauth2 configuration.
Click to show internal directories.
Click to hide internal directories.