auth

package
v0.0.0-...-fb1a1ec Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CustomerNamespace = "micro"
)

Variables

This section is empty.

Functions

func VerifyMicroAdmin

func VerifyMicroAdmin(ctx context.Context, method string) (*auth.Account, error)

VerifyMicroAdmin returns the account from context if it belongs to an admin (or service), error otherwise

func VerifyMicroCustomer

func VerifyMicroCustomer(ctx context.Context, method string) (*auth.Account, error)

VerifyMicroCustomer returns the account from context if it belongs to a customer or an admin, error otherwise

Types

This section is empty.

Jump to

Keyboard shortcuts

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