introspect

package
v0.0.0-...-ee64981 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var InactiveIntrospectionBytes = []byte(`{"active":false}`)

InactiveIntrospectionBytes contains the standard introspection for an inactive token

Functions

func AddActive

func AddActive(b []byte) ([]byte, error)

AddActive modifies the claims to indicate that the token is currently active

func IsActive

func IsActive(b []byte) bool

IsActive returns true if the given introspection bytes indicate that the token is active

func ValidNow

func ValidNow(b []byte) bool

ValidNow returns true if the expired and not before claims indicate that the token is valid for the current local time. From RFC7519:

processing of the "exp" claim requires that the current date/time
MUST be before the expiration date/time listed in the "exp" claim
processing of the "nbf" claim requires that the current date/time
MUST be after or equal to listed in the "nbf" claim

Types

This section is empty.

Jump to

Keyboard shortcuts

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