Documentation ¶
Index ¶
- type AuthzServer
- func (a *AuthzServer) GetVersion(ctx context.Context, _ *version.VersionInfoRequest) (*version.VersionInfo, error)
- func (a *AuthzServer) Introspect(ctx context.Context, gwReq *gwAuthzReq.IntrospectReq) (*gwAuthzRes.IntrospectResp, error)
- func (a *AuthzServer) IntrospectAll(ctx context.Context, gwReq *gwAuthzReq.IntrospectAllReq) (*gwAuthzRes.IntrospectResp, error)
- func (a *AuthzServer) IntrospectSome(ctx context.Context, gwReq *gwAuthzReq.IntrospectSomeReq) (*gwAuthzRes.IntrospectResp, error)
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 ¶
func (a *AuthzServer) GetVersion(ctx context.Context, _ *version.VersionInfoRequest) (*version.VersionInfo, error)
GetVersion returns service version
func (*AuthzServer) Introspect ¶
func (a *AuthzServer) Introspect( ctx context.Context, gwReq *gwAuthzReq.IntrospectReq) (*gwAuthzRes.IntrospectResp, error)
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 ¶
func (a *AuthzServer) IntrospectAll( ctx context.Context, gwReq *gwAuthzReq.IntrospectAllReq) (*gwAuthzRes.IntrospectResp, error)
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 ¶
func (a *AuthzServer) IntrospectSome( ctx context.Context, gwReq *gwAuthzReq.IntrospectSomeReq) (*gwAuthzRes.IntrospectResp, error)
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.