handler

package
v0.0.0-...-2cf57f6 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2020 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthServer

type AuthServer struct {
	Context *ServerContext
}

func (*AuthServer) Callback

func (*AuthServer) IsPrivate

func (s *AuthServer) IsPrivate(method string) bool

func (*AuthServer) SignIn

func (*AuthServer) SignOut

type ExtAuthZ

type ExtAuthZ struct {
	GA      *auth.GatewayAuthorizer
	Context *ServerContext
}

func (*ExtAuthZ) Check

Check handles requests from ext_authz in Envoy proxy

type ServerContext

type ServerContext struct {
	Config *config.Config

	AppClient     api.AppClient
	UserOrgClient api.UserOrgClient
	TokenClient   api.TokenClient

	Connector *connector.Connector
}

ServerContext contains accessor used by handlers

func NewServerContext

func NewServerContext(cfg *config.Config) (*ServerContext, error)

Jump to

Keyboard shortcuts

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