Versions in this module Expand all Collapse all v0 v0.10.1 Dec 6, 2024 v0.10.0 Dec 6, 2024 Changes in this version + func CreateTransferCode(rlog log.Ext1FieldLogger, myID mtid.MTID, jwt string, newMT bool, ...) (string, uint64, error) + type Mytoken struct + AuthTime unixtime.UnixTime + ExpiresAt unixtime.UnixTime + ID mtid.MTID + IssuedAt unixtime.UnixTime + NotBefore unixtime.UnixTime + Restrictions restrictions.Restrictions + Rotation *api.Rotation + func NewMytoken(oidcSub, oidcIss, name string, r restrictions.Restrictions, c api.Capabilities, ...) (*Mytoken, error) + func ParseJWT(token string) (*Mytoken, error) + func ParseJWTWithoutClaimsValidation(token string) (*Mytoken, error) + func (mt *Mytoken) DBMetadata() (meta mytokenrepohelper.MytokenDBMetadata, err error) + func (mt *Mytoken) ExpiresIn() uint64 + func (mt *Mytoken) ToJWT() (string, error) + func (mt *Mytoken) ToTokenResponse(rlog log.Ext1FieldLogger, responseType model.ResponseType, maxTokenLen int, ...) (response.MytokenResponse, error) + func (mt *Mytoken) ToUniversalMytoken() universalmytoken.UniversalMytoken + func (mt *Mytoken) ToUsedMytoken(rlog log.Ext1FieldLogger, tx *sqlx.Tx) (*UsedMytoken, error) + func (mt *Mytoken) Valid() error + func (mt *Mytoken) VerifyCapabilities(required ...api.Capability) bool + func (mt Mytoken) Rotate() *Mytoken + type UsedMytoken struct + Restrictions []restrictions.UsedRestriction