directive

package module
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

README

tilores-directive-oauth-scope

This project includes implementation for oAuth scopes directives used in TiloRes product.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContextWithScopes

func ContextWithScopes(ctx context.Context, request *events.APIGatewayProxyRequest) (context.Context, error)

ContextWithScopes creates a context that contains the scopes.

func HasPrivilege

func HasPrivilege(ctx context.Context, privilege string) bool

HasPrivilege checks the JWT token inside the provided context.Context whether it has the provided privilege in its oAuth scopes.

Types

This section is empty.

Jump to

Keyboard shortcuts

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