providers

package
v0.0.0-...-f9fbf85 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 12, 2023 License: MIT Imports: 5 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL