handler

package
v0.5.7 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2022 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

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

func NewHandler

func NewHandler() *Handler

func (*Handler) Delete

func (h *Handler) Delete(ctx context.Context, in *authpb.UserIDRequest, out *emptypb.Empty) error

func (*Handler) Detail

func (h *Handler) Detail(ctx context.Context, in *authpb.UserIDRequest, out *authpb.User) error

func (*Handler) Init

func (h *Handler) Init(cReg *components.Registry, c InitConfig) error

func (*Handler) Inspect

func (s *Handler) Inspect(ctx context.Context, in *emptypb.Empty, out *authpb.JWTClaims) error

func (*Handler) List

func (*Handler) Login

func (h *Handler) Login(ctx context.Context, in *authpb.LoginRequest, out *authpb.Token) error

func (*Handler) Refresh

func (h *Handler) Refresh(ctx context.Context, in *authpb.RefreshTokenRequest, out *authpb.Token) error

func (*Handler) Register

func (h *Handler) Register(ctx context.Context, in *authpb.RegisterRequest, out *authpb.User) error

func (*Handler) Stop

func (h *Handler) Stop() error

func (*Handler) UpdateRoles

func (h *Handler) UpdateRoles(ctx context.Context, in *authpb.UpdateRolesRequest, out *authpb.User) error

type InitConfig

type InitConfig struct {
	Audiences          []string
	RefreshTokenExpiry int64
	AccessTokenExpiry  int64

	AccessTokenPubKey   string
	AccessTokenPrivKey  string
	RefreshTokenPubKey  string
	RefreshTokenPrivKey string
}

Jump to

Keyboard shortcuts

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