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 (m *BasicAuthMiddleware) Init(next http.Handler) middleware.Middleware
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 (m *JWTAuthMiddleware) Init(next http.Handler) middleware.Middleware
func (*JWTAuthMiddleware) ServeHTTP ¶
func (m *JWTAuthMiddleware) ServeHTTP(w http.ResponseWriter, r *http.Request)
Click to show internal directories.
Click to hide internal directories.