adapter

package
v0.0.0-...-200b26a Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2021 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppidAdapter

type AppidAdapter struct {
	// contains filtered or unexported fields
}

AppidAdapter supports authorization template.

func (*AppidAdapter) Addr

func (s *AppidAdapter) Addr() string

Addr returns the listening address of the server

func (*AppidAdapter) Close

func (s *AppidAdapter) Close() error

Close gracefully shuts down the server; used for testing

func (*AppidAdapter) HandleAuthnZ

func (s *AppidAdapter) HandleAuthnZ(ctx context.Context, r *authnz.HandleAuthnZRequest) (*authnz.HandleAuthnZResponse, error)

HandleAuthnZ evaluates authn/z policies using api/web strategy

func (*AppidAdapter) Run

func (s *AppidAdapter) Run(shutdown chan error)

Run starts the server run

type Server

type Server interface {
	Addr() string
	Close() error
	Run(shutdown chan error)
}

Server is basic server interface

func NewAppIDAdapter

func NewAppIDAdapter(cfg *config.Config) (Server, error)

NewAppIDAdapter creates a new App ID Adapter listening on the provided port.

Directories

Path Synopsis
Package authserver models an OAuth 2.0 Authorization Server
Package authserver models an OAuth 2.0 Authorization Server
keyset
Package keyset contains entities to control JSON Web Key Sets (JWKS)
Package keyset contains entities to control JSON Web Key Sets (JWKS)
Package errors contains custom OAuth 2.0 / OIDC error objects
Package errors contains custom OAuth 2.0 / OIDC error objects
pkg
client/clientset/versioned
This package has the automatically generated clientset.
This package has the automatically generated clientset.
client/clientset/versioned/fake
This package has the automatically generated fake clientset.
This package has the automatically generated fake clientset.
client/clientset/versioned/scheme
This package contains the scheme of the automatically generated clientset.
This package contains the scheme of the automatically generated clientset.
client/clientset/versioned/typed/policies/v1
This package has the automatically generated typed clients.
This package has the automatically generated typed clients.
client/clientset/versioned/typed/policies/v1/fake
Package fake has the automatically generated clients.
Package fake has the automatically generated clients.
engine
Package engine is responsible for making policy decisions Package engine is responsible for making policy decisions
Package engine is responsible for making policy decisions Package engine is responsible for making policy decisions
handler
Package handler is responsible for monitoring and maintaining authn/z policies
Package handler is responsible for monitoring and maintaining authn/z policies
api
web
Package validator provides structures responsible for validating tokens according to custom policies
Package validator provides structures responsible for validating tokens according to custom policies

Jump to

Keyboard shortcuts

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