Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ValidProviders = []OAuthProvider{GitHub, Zoom, GitLab, Microsoft}
Functions ¶
func ContainsProvider ¶
func ContainsProvider(collection []OAuthProvider, toFind OAuthProvider) bool
Types ¶
type GitLabOAuthProvider ¶
type GitLabOAuthProvider struct {
// contains filtered or unexported fields
}
func NewGitLabOAuthProvider ¶
func NewGitLabOAuthProvider(redirectURI string) GitLabOAuthProvider
func (GitLabOAuthProvider) Endpoint ¶
func (g GitLabOAuthProvider) Endpoint() oauth2.Endpoint
func (GitLabOAuthProvider) RedirectURL ¶
func (g GitLabOAuthProvider) RedirectURL() string
type GithubOAuthProvider ¶
type GithubOAuthProvider struct{}
func (GithubOAuthProvider) Endpoint ¶
func (g GithubOAuthProvider) Endpoint() oauth2.Endpoint
func (GithubOAuthProvider) RedirectURL ¶
func (g GithubOAuthProvider) RedirectURL() string
type MicrosoftOAuthProvider ¶
type MicrosoftOAuthProvider struct {
// contains filtered or unexported fields
}
func NewMicrosoftOAuthProvider ¶
func NewMicrosoftOAuthProvider(tenantID, redirectURI string) MicrosoftOAuthProvider
func (MicrosoftOAuthProvider) Endpoint ¶
func (m MicrosoftOAuthProvider) Endpoint() oauth2.Endpoint
func (MicrosoftOAuthProvider) RedirectURL ¶
func (m MicrosoftOAuthProvider) RedirectURL() string
type OAuthProvider ¶
type OAuthProvider string
const ( GitHub OAuthProvider = "github" Zoom OAuthProvider = "zoom" GitLab OAuthProvider = "gitlab" Microsoft OAuthProvider = "microsoft" )
func (OAuthProvider) DisplayName ¶ added in v0.1.1
func (p OAuthProvider) DisplayName() string
func (OAuthProvider) HomepageURL ¶ added in v0.1.1
func (p OAuthProvider) HomepageURL() string
type ProviderMetadata ¶ added in v0.1.1
type ZoomOAuthProvider ¶
type ZoomOAuthProvider struct {
// contains filtered or unexported fields
}
func NewZoomOAuthProvider ¶
func NewZoomOAuthProvider(redirectURI string) ZoomOAuthProvider
func (ZoomOAuthProvider) Endpoint ¶
func (z ZoomOAuthProvider) Endpoint() oauth2.Endpoint
func (ZoomOAuthProvider) RedirectURL ¶
func (z ZoomOAuthProvider) RedirectURL() string
Click to show internal directories.
Click to hide internal directories.