auth

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2024 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 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 Provider

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

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