providers

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

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 ProviderMetadata struct {
	DisplayName string
	HomepageURL string
}

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

Jump to

Keyboard shortcuts

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