auth

package
v2.3.0-beta41 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Package auth defines methods for authenticating with GitHub.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(serverURL string, installationID string, logger *zap.Logger, gitHubClientID string) service.Auth

Types

type Auth

type Auth struct {
	GitHubClientID string
	// contains filtered or unexported fields
}

func (*Auth) GetToken

func (a *Auth) GetToken(ctx context.Context) (string, error)

func (*Auth) Login

func (a *Auth) Login(ctx context.Context) bool

func (*Auth) Validate

func (a *Auth) Validate(ctx context.Context, token string) (string, bool, string, error)

Jump to

Keyboard shortcuts

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