gh

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: May 14, 2022 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GithubAuthenticator

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

func New

func New(
	ClientID string,
	ClientSecret string,
	RedirectURL string,
	stor storage.Storage,
) *GithubAuthenticator

func (*GithubAuthenticator) CreateSession

func (gh *GithubAuthenticator) CreateSession(userHash models.User) (string, error)

func (*GithubAuthenticator) GetSession

func (gh *GithubAuthenticator) GetSession(hash plumbing.Hash) (models.UserSession, error)

func (*GithubAuthenticator) NewSession

func (gh *GithubAuthenticator) NewSession(state string) string

func (*GithubAuthenticator) Register

func (gh *GithubAuthenticator) Register(token string) (string, error)

func (*GithubAuthenticator) Token

func (gh *GithubAuthenticator) Token(code string) (string, error)

func (*GithubAuthenticator) UID

func (gh *GithubAuthenticator) UID(token string) (string, error)

Jump to

Keyboard shortcuts

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