Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type JWTClaims ¶
type JWTClaims struct { jwt.StandardClaims Scopes []string Profile []string Data map[string]string }
JWTClaims is the structure of the claims we are sending on the wire.
type Verifier ¶
Verifier keeps all the structures for processing tokens.
func NewVerifier ¶
func NewVerifier(s secrets.Secrets, globalCertificate *x509.Certificate) *Verifier
NewVerifier creates a new Aporeto JWT Verifier. The globalCertificate is optional and is needed for configurations that do not transmit the token over the wire.
func (*Verifier) ParseToken ¶
ParseToken parses and validates the JWT token, give the publicKey. It returns the scopes the identity and the subject of the provided token. These tokens are strictly signed with EC. TODO: We can be more flexible with the algorithm selection here.
Click to show internal directories.
Click to hide internal directories.