github

package
v1.8.0-rc.4 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2023 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const Name = "github"

Variables

This section is empty.

Functions

This section is empty.

Types

type Provider

type Provider struct {
	*generic.Provider
}

func NewProvider

func NewProvider(conf config.Config) *Provider

func (*Provider) CheckOrgs added in v1.7.0

func (p *Provider) CheckOrgs(ctx context.Context, tokens *oidc.Tokens[*oidc.IDTokenClaims]) error

func (*Provider) CheckTeams added in v1.7.0

func (p *Provider) CheckTeams(ctx context.Context, tokens *oidc.Tokens[*oidc.IDTokenClaims]) error

func (*Provider) CheckUser

func (p *Provider) CheckUser(
	ctx context.Context, _ state.State, _ types.UserData, tokens *oidc.Tokens[*oidc.IDTokenClaims],
) error

func (*Provider) GetEndpoints added in v1.6.0

func (p *Provider) GetEndpoints(conf config.Config) (oauth2.Endpoint, error)

func (*Provider) GetName added in v1.6.0

func (p *Provider) GetName() string

func (*Provider) GetUser

func (p *Provider) GetUser(ctx context.Context, tokens *oidc.Tokens[*oidc.IDTokenClaims]) (types.UserData, error)

Jump to

Keyboard shortcuts

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