provider

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2020 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Provider

type Provider interface {

	// Login issues bearer tokens for a client.
	// A client has to identity itself by his correct username and password pair.
	// In response, a TokenReviewRequest will be send containing the issued bearer token for the client and user information
	Login(username, password string) (*models.TokenReviewRequest, error)

	// Authenticate authenticates a client by a bearer token.
	// In response, a TokenReviewRequest is sent to the client.
	Authenticate(bearerToken string) (*models.TokenReviewRequest, error)
}

Provider is an interface representing an identity provider. The identity provider is responsible for issuing bearer tokens for clients (login) and offers authentication of the tokens (authenticate)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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