authen

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2024 License: MPL-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthenClient

type AuthenClient struct {
	Client *http.Client
	// contains filtered or unexported fields
}

func NewAuthenClient

func NewAuthenClient(cfg *Configuration) (*AuthenClient, error)

type Configuration

type Configuration struct {
	// ClientID is the application's ID.
	ClientID string

	// ClientSecret is the application's secret.
	ClientSecret string

	// TokenURL is the resource server's token endpoint
	// URL. This is a constant specific to each server.
	TokenURL string
}

Config describes a 2-legged OAuth2 flow, with both the client application information and the server's endpoint URLs.

func NewConfiguration

func NewConfiguration(ClientID string, ClientSecret string, TokenURL string) *Configuration

Jump to

Keyboard shortcuts

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