security

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Guard

type Guard func(next http.Handler) http.Handler

func JWT

func JWT(secret string) Guard

JWT defines a JWT-based security guard that verifies the Authorization header token.

func None

func None() Guard

None defines a no-security guard.

func OIDC

func OIDC(clientID, identityProvider string) Guard

OIDC defines an OpenID-Connect security guard by verifying the id_token in the Authorization header.

Jump to

Keyboard shortcuts

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