github

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewProvider added in v0.12.4

func NewProvider(cfg *Config) auth.Provider

NewProvider creates a new PAM authentication provider.

Types

type Config added in v0.12.4

type Config struct {
	// the GitHub service endpoint, e.g. https://api.github.com/.
	APIEndpoint string
	SkipVerify  bool
}

Config contains configuration for GitHub authentication.

⚠️ WARNING: Change to the field name must preserve the INI key name for backward compatibility.

type Provider added in v0.12.4

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

Provider contains configuration of a PAM authentication provider.

func (*Provider) Authenticate added in v0.12.4

func (p *Provider) Authenticate(login, password string) (*auth.ExternalAccount, error)

func (*Provider) Config added in v0.12.4

func (p *Provider) Config() any

func (*Provider) HasTLS added in v0.12.4

func (*Provider) HasTLS() bool

func (*Provider) SkipTLSVerify added in v0.12.4

func (p *Provider) SkipTLSVerify() bool

func (*Provider) UseTLS added in v0.12.4

func (*Provider) UseTLS() bool

Jump to

Keyboard shortcuts

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