app

package
v0.0.0-...-3cd25b9 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AapClientUsingClientCredentials

func AapClientUsingClientCredentials(env *Environment, c *gin.Context) *aap.AapClient

func RequestId

func RequestId() gin.HandlerFunc

func RequestLogger

func RequestLogger(env *Environment, appFields logrus.Fields) gin.HandlerFunc

Types

type Environment

type Environment struct {
	Constants *EnvironmentConstants

	Logger *logrus.Logger

	Provider        *oidc.Provider
	OAuth2Delegator *oauth2.Config // hydra

	AapConfig *clientcredentials.Config
}

type EnvironmentConstants

type EnvironmentConstants struct {
	RequestIdKey    string
	LogKey          string
	SessionStoreKey string // This holds the application data
}

Jump to

Keyboard shortcuts

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