introspect

package
v0.0.0-...-a8b8e24 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthzServer

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

AuthzServer is the server interface

func NewServer

func NewServer(
	client authz.AuthorizationServiceClient,
	introspectionHandler middleware.IntrospectionHandler,
) *AuthzServer

NewServer creates a server with its client

func (*AuthzServer) GetVersion

GetVersion returns service version

func (*AuthzServer) Introspect

Introspect returns a list of the supported HTTP methods with a Boolean status indicating allowed or denied, for the given, single endpoint. This method must be used for parameterized endpoints but may also be used for non-parameterized endpoints.

func (*AuthzServer) IntrospectAll

IntrospectAll returns a list of all HTTP endpoints the requestor has access to and, for each endpoint, a map of the supported HTTP methods with a Boolean status indicating allowed or denied.

func (*AuthzServer) IntrospectSome

IntrospectSome returns a list of the supported HTTP methods with a Boolean status indicating allowed or denied, for each endpoint in the request list. All supplied endpoints must be non-parameterized.

Jump to

Keyboard shortcuts

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