server

package
v0.64.0 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	v1.UnimplementedRbacInternalServiceServer
	// contains filtered or unexported fields
}

Server implementes the gRPC interface.

func New

func New(issuerURL string, cache cacheGetter, roleScopes map[string][]string) *Server

New returns a new Server.

func (*Server) Authorize

func (s *Server) Authorize(ctx context.Context, req *v1.AuthorizeRequest) (*v1.AuthorizeResponse, error)

Authorize authorizes the given token and scope.

func (*Server) Run

func (s *Server) Run(ctx context.Context, port int) error

Run starts the gRPC server.

Jump to

Keyboard shortcuts

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