authorize

package module
v1.3.24 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2022 License: Apache-2.0 Imports: 15 Imported by: 1

README

caddy-authorize

Authorization Plugin for Caddy v2.

Documentation: authp.github.io

Please see other relevant plugins:

Please show your appreciation for this work and ⭐ ⭐ ⭐

This work is inspired by BTBurke/caddy-jwt. Many thanks to @BTBurke and other contributors to the plugin.

Please ask questions either here or via LinkedIn. I am happy to help you! @greenpau.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetRequestID

func GetRequestID(r *http.Request) string

GetRequestID returns request ID.

Types

type AuthMiddleware

type AuthMiddleware struct {
	Authorizer *authz.Authorizer `json:"authorizer,omitempty" xml:"authorizer,omitempty" yaml:"authorizer,omitempty"`
}

AuthMiddleware authorizes access to endpoints based on the presense and content of JWT token.

func (AuthMiddleware) Authenticate

Authenticate authorizes access based on the presense and content of JWT token.

func (AuthMiddleware) CaddyModule

func (AuthMiddleware) CaddyModule() caddy.ModuleInfo

CaddyModule returns the Caddy module information.

func (*AuthMiddleware) Provision

func (m *AuthMiddleware) Provision(ctx caddy.Context) error

Provision provisions JWT authorization provider

func (*AuthMiddleware) UnmarshalCaddyfile

func (m *AuthMiddleware) UnmarshalCaddyfile(d *caddyfile.Dispenser) (err error)

UnmarshalCaddyfile unmarshals a caddyfile

func (*AuthMiddleware) Validate

func (m *AuthMiddleware) Validate() error

Validate implements caddy.Validator.

Jump to

Keyboard shortcuts

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