Documentation
¶
Index ¶
Constants ¶
View Source
const Issuer = "token-exchange"
Variables ¶
View Source
var DefaultAudience = jwt.Audience{"autojoin"}
DefaultAudience is the default audience for JWT tokens. TODO(rd): Support audience selection (via different URLs or query string)
Functions ¶
This section is empty.
Types ¶
type Claims ¶
Claims is a JWT claims set that extends jwt.Claims with an additional field for the Organization.
type JWTSigner ¶
type JWTSigner struct {
// contains filtered or unexported fields
}
JWTSigner is a JWT signer that can be used to sign JWT tokens.
func NewJWTSigner ¶
NewJWTSigner loads a private key from a JWK file and prepares a signer.
func (*JWTSigner) GenerateToken ¶
GenerateToken generates a JWT token for the given organization.
func (*JWTSigner) GetPublicJWK ¶
func (s *JWTSigner) GetPublicJWK() jose.JSONWebKey
GetPublicJWK returns the public key in jose.JSONWebKey format.
Click to show internal directories.
Click to hide internal directories.