wjwt

package
v0.0.0-...-2e0c1f2 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get(c winter.Context, altKeys ...string) jwt.Token

Get get JWT Payload from Istio RequestAuthentication header

func Installer

func Installer(opts ...Option) wext.Installer

Installer install component

func Sign

func Sign(ctx context.Context, fn func(b *jwt.Builder) *jwt.Builder, altKeys ...string) string

Sign create a signed JWT

Types

type Option

type Option = func(opts *options)

Option option for installation

func WithDebugPayload

func WithDebugPayload(d bool) Option

WithDebugPayload set debugPayload mode, when on, will extract Payload from 'Authorization' header without validating

func WithIssuer

func WithIssuer(s string) Option

WithIssuer set issuer

func WithJWKKey

func WithJWKKey(s ...string) Option

WithJWKKey set key for JWK

func WithPayloadHeader

func WithPayloadHeader(s string) Option

WithPayloadHeader set payload header set by Istio RequestAuthentication

Jump to

Keyboard shortcuts

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