oauthenticator

package module
v0.0.0-...-2c46020 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2024 License: Apache-2.0 Imports: 1 Imported by: 2

README

oauthenticator is a small service to manage OAuth 2 logins and appropriate tokens stored over a SPARQL repository. These tokens can be used by other processes without separately implementing the authentication process.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config interface {
	Type() string
	Identifier() string
	Label() string
	Config() *oauth2.Config
	Endpoint() oauth2.Endpoint
	Token() TokenPersistence
	Options() []oauth2.AuthCodeOption
}

type Provider

type Provider interface {
	Configs() ([]Config, error)
	ConfigsOfType(ctype string) ([]Config, error)
	Config(identifier string) (Config, error)
}

type TokenPersistence

type TokenPersistence interface {
	oauth2.TokenSource

	SetToken(*oauth2.Token)
}

Directories

Path Synopsis
cmd
cli
persistence

Jump to

Keyboard shortcuts

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