Documentation ¶
Index ¶
- Constants
- func AccessToken(env *Environment, c *gin.Context) *oauth2.Token
- func AuthenticationRequired(logKey string, accessTokenKey string) gin.HandlerFunc
- func AuthorizationRequired(env *Environment, requiredScopes ...string) gin.HandlerFunc
- func ProcessMethodOverride(r *gin.Engine) gin.HandlerFunc
- func RequestId() gin.HandlerFunc
- func RequestLogger(logKey string, requestIdKey string, log *logrus.Logger, ...) gin.HandlerFunc
- type Environment
- type EnvironmentConstants
- type EnvironmentOauth2Delegator
- type Introspection
- type JsonError
- type JudgeVerdict
Constants ¶
View Source
const ERROR_INVALID_ACCESS_TOKEN = 1
View Source
const ERROR_MISSING_BEARER_TOKEN = 2
View Source
const ERROR_MISSING_REQUIRED_SCOPES = 3
Variables ¶
This section is empty.
Functions ¶
func AccessToken ¶
func AccessToken(env *Environment, c *gin.Context) *oauth2.Token
func AuthenticationRequired ¶
func AuthenticationRequired(logKey string, accessTokenKey string) gin.HandlerFunc
func AuthorizationRequired ¶
func AuthorizationRequired(env *Environment, requiredScopes ...string) gin.HandlerFunc
func ProcessMethodOverride ¶
func ProcessMethodOverride(r *gin.Engine) gin.HandlerFunc
func RequestId ¶
func RequestId() gin.HandlerFunc
func RequestLogger ¶
Types ¶
type Environment ¶
type Environment struct { Provider *oidc.Provider OAuth2Delegator *EnvironmentOauth2Delegator Driver neo4j.Driver Constants *EnvironmentConstants Nats *nats.Conn }
type EnvironmentConstants ¶
type EnvironmentOauth2Delegator ¶
type EnvironmentOauth2Delegator struct { Config *clientcredentials.Config IntrospectTokenUrl string }
type Introspection ¶
type JudgeVerdict ¶
type JudgeVerdict struct { Introspection Introspection Verdict aap.Verdict Reason string }
Click to show internal directories.
Click to hide internal directories.