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.
Click to show internal directories.
Click to hide internal directories.