jwtbuilder

package
v0.0.0-...-0e91422 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2021 License: Apache-2.0 Imports: 3 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Build

func Build(tenant string, scopes []string, consumer *Consumer) (string, error)

Build constructs a JWT signed token containing the provided tenant, scopes and consumer information as claims

Types

type Consumer

type Consumer struct {
	ID   string
	Type ConsumerType
}

type ConsumerType

type ConsumerType string
const (
	RuntimeConsumer           ConsumerType = "Runtime"
	ApplicationConsumer       ConsumerType = "Application"
	IntegrationSystemConsumer ConsumerType = "Integration System"
	UserConsumer              ConsumerType = "Static User"
)

Jump to

Keyboard shortcuts

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