middleware

package
v0.0.0-...-f9df99f Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthMiddleware

type AuthMiddleware struct {
	AuthEnabled    bool
	IssuerUrl      string
	RequiredScopes string
}

func (AuthMiddleware) VerifyOAuthTokenMiddleware

func (a AuthMiddleware) VerifyOAuthTokenMiddleware(next http.Handler) http.Handler

type Claims

type Claims struct {
	Scopes string `json:"scope"`
}

type HTTPError

type HTTPError struct {
	Code int
	Msg  string
}

func NewHTTPError

func NewHTTPError(code int, msg string) *HTTPError

func (*HTTPError) Error

func (e *HTTPError) Error() string

type IntrospectionResponse

type IntrospectionResponse struct {
	Active bool   `json:"active"`
	Scope  string `json:"scope"`
}

Jump to

Keyboard shortcuts

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