projauth

package
v0.9.1 Latest Latest
Warning

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

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

Documentation

Overview

Package projauth provides authorization for each GRPC method in MServiceProject. The JWT extracted from the GRPC request context is used for each delegating method.

Index

Constants

This section is empty.

Variables

View Source
var NotImplemented = errors.New("not implemented")

Functions

func GetInt64FromClaims

func GetInt64FromClaims(claims *map[string]interface{}, key string) int64

Get the clain value as an int64.

func GetStringFromClaims

func GetStringFromClaims(claims *map[string]interface{}, key string) string

Get the claim value as a string.

func NewProjectAuth

func NewProjectAuth(projService pb.MServiceProjectServer) *projAuth

Get a new projAuth instance.

Types

This section is empty.

Jump to

Keyboard shortcuts

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