jwsreq

package
v0.0.0-...-7467996 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// HeaderType describes JWT token header type.
	//nolint:gosec // detected as hardcoded credentials
	HeaderType = "oauth-authz-req+jwt"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Authorization

type Authorization interface {
	AuthorizationDecoder
	AuthorizationEncoder
}

Authorization describes authorization request codec contract.

type AuthorizationDecoder

type AuthorizationDecoder interface {
	Decode(ctx context.Context, value string) (*flowv1.AuthorizationRequest, error)
}

AuthorizationDecoder describes authorization decoder contract.

func AuthorizationRequestDecoder

func AuthorizationRequestDecoder(verifier token.Verifier) AuthorizationDecoder

AuthorizationRequestDecoder returns an authorization request decoder instance.

type AuthorizationEncoder

type AuthorizationEncoder interface {
	Encode(ctx context.Context, ar *flowv1.AuthorizationRequest) (string, error)
}

AuthorizationEncoder describes authorization encoder contract.

func AuthorizationRequestEncoder

func AuthorizationRequestEncoder(signer token.Serializer) AuthorizationEncoder

AuthorizationRequestEncoder returns an authorization request encoder instance.

Jump to

Keyboard shortcuts

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