Versions in this module Expand all Collapse all v0 v0.7.1 Aug 12, 2020 Changes in this version + const StrategyNoRefresh + const StrategyRefreshBoth + const StrategyRefreshOnExpire + func NewJWTServer(service Service, log *zap.Logger) api.JWTServer + func NewPBFromNewJWTRequest(msg *NewJWTRequest) *apiJWT.NewJWTRequest + func NewPBFromNewJWTResponse(msg *NewJWTResponse) *apiJWT.NewJWTResponse + func NewPBFromRenewJWTRequest(msg *RenewJWTRequest) *apiJWT.RenewJWTRequest + func NewPBFromRenewJWTResponse(msg *RenewJWTResponse) *apiJWT.RenewJWTResponse + func NewPBFromRevokeJWTRequest(msg *RevokeJWTRequest) *apiJWT.RevokeJWTRequest + func NewPBFromRevokeJWTResponse(msg *RevokeJWTResponse) *apiJWT.RevokeJWTResponse + func Register() *services.ServiceInfo + type NewJWTRequest struct + Claims map[string]interface{} + KID string + func NewNewJWTRequestFromPB(msg *apiJWT.NewJWTRequest) *NewJWTRequest + type NewJWTResponse struct + AccessToken string + Expiry jwt.NumericDate + ID string + RefreshToken string + func NewNewJWTResponseFromPB(msg *apiJWT.NewJWTResponse) *NewJWTResponse + type RenewJWTRequest struct + KID string + RefreshStrategy string + RefreshToken string + func NewRenewJWTRequestFromPB(msg *apiJWT.RenewJWTRequest) *RenewJWTRequest + type RenewJWTResponse struct + AccessToken string + Expiry jwt.NumericDate + ID string + RefreshToken string + func NewRenewJWTResponseFromPB(msg *apiJWT.RenewJWTResponse) *RenewJWTResponse + type RevokeJWTRequest struct + ID string + KID string + RefreshToken string + func NewRevokeJWTRequestFromPB(msg *apiJWT.RevokeJWTRequest) *RevokeJWTRequest + type RevokeJWTResponse struct + func NewRevokeJWTResponseFromPB(msg *apiJWT.RevokeJWTResponse) *RevokeJWTResponse + type Service interface + NewJWT func(ctx context.Context, req *NewJWTRequest) (*NewJWTResponse, error) + RenewJWT func(ctx context.Context, req *RenewJWTRequest) (*RenewJWTResponse, error) + RevokeJWT func(ctx context.Context, req *RevokeJWTRequest) (*RevokeJWTResponse, error)