auth

package
v0.0.0-...-afcd4c4 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BasicAuthMiddleware

type BasicAuthMiddleware struct {
	middleware.Middleware
	// contains filtered or unexported fields
}

func (*BasicAuthMiddleware) Init

func (*BasicAuthMiddleware) ServeHTTP

func (m *BasicAuthMiddleware) ServeHTTP(w http.ResponseWriter, r *http.Request)

type JWTAuthMiddleware

type JWTAuthMiddleware struct {
	middleware.Middleware
	// contains filtered or unexported fields
}

Checks for JWT token validity and puts claims into context Uses jwks standard URL Example using keyclaok:

https://keycloak.url/realms/test/protocol/openid-connect/certs

func (*JWTAuthMiddleware) Init

func (*JWTAuthMiddleware) ServeHTTP

func (m *JWTAuthMiddleware) ServeHTTP(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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