package
0.0.0-20250126144638-1703ca666225
Repository: https://github.com/rmorlok/authproxy.git
Documentation: pkg.go.dev

# Functions

ClaimString converts a singular string into a claims string.
GetActorFromContext gets an actor from the context, or returns nil if one is not present.
HashID tries to hash val with hash.Hash and fallback to crc if needed.
No description provided by the author
MustGetActorFromContext always returns an actor, or panics if an actor is not present on the context.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
SetActorInContext sets the actor on the context.

# Structs

Actor is the information that identifies who is making a request.
AuthProxyClaims is the struct that defines a JWT for the auth service.

# Interfaces

ClaimsBuilder is an object to build Jwts to properly construct claims as expected with the actor/subject etc properly constructed.
ParserBuilder is a builder that can parse a JWT.
No description provided by the author
TokenBuilder extends from ClaimsBuilder to provide options to sign tokens.

# Type aliases

KeySelector is a function that takes a claims object and loads a key dynamically used to verify the JWT.