oauth

package
v0.0.0-...-5c79d48 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2024 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Authorizer

type Authorizer interface {
	Exchanger
	Refresher
}

Authorizer is the composite interface of Exchanger and Refresher.

type Exchanger

type Exchanger interface {
	Exchange(ctx context.Context, authorizationCode string, redirectURI string) (*storage.Credentials, error)
}

Exchanger implements the OAuth2 authorization code exchange operation.

type Refresher

type Refresher interface {
	Refresh(ctx context.Context, refreshToken string) (*storage.Credentials, error)
}

Refresher implements the OAuth2 bearer token refresh operation.

Jump to

Keyboard shortcuts

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