provider

package
v0.1.0-rc2 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2022 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthProvider

type AuthProvider interface {
	GetLoginURL(redirectURI, state string) string
	Exchange(redirectURI, code string) (*User, error)
}

type OIDCProvider

type OIDCProvider struct {
	// contains filtered or unexported fields
}

func NewOIDCProvider

func NewOIDCProvider(c *config.AuthProvider) (*OIDCProvider, error)

func (*OIDCProvider) Exchange

func (p *OIDCProvider) Exchange(redirectURI, code string) (*User, error)

func (*OIDCProvider) GetLoginURL

func (p *OIDCProvider) GetLoginURL(redirectURI, state string) string

type User

type User struct {
	ID   string
	Name string
	Attr map[string]interface{}
}

Jump to

Keyboard shortcuts

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