apple

package
v0.5.8 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OAuth

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

func New

func New(opts ...Option) *OAuth

func (*OAuth) HandlerAuth

func (oauth *OAuth) HandlerAuth(code string) (*localOauth2.User, error)

func (*OAuth) Provide

func (oauth *OAuth) Provide(ctx context.Context) any

type Option

type Option func(o *Options)

func WithClientID

func WithClientID(clientID string) Option

func WithClientSecret

func WithClientSecret(clientSecret string) Option

func WithClientSecretFile

func WithClientSecretFile(clientSecretFile string) Option

func WithKeyId

func WithKeyId(keyId string) Option

func WithRedirectURL

func WithRedirectURL(redirectURL string) Option

func WithTeamId

func WithTeamId(teamId string) Option

type Options

type Options struct {
	ClientId         string
	KeyId            string
	ClientSecret     string
	ClientSecretFile string
	TeamId           string
	RedirectURL      string
}

Jump to

Keyboard shortcuts

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