# Functions
CheckCapabilityAndRestriction checks the mytoken.Mytoken's capability and restrictions.
RequireCapability checks that the passed mytoken.Mytoken has the required api.Capability and returns an error model.Response if not.
RequireGrantType checks that the passed model.GrantType are the same, and returns an error model.Response if not.
RequireMatchingIssuer checks that the OIDC issuer from a mytoken is the same as the issuer string in a request (if given).
RequireMytoken checks the passed universalmytoken.UniversalMytoken and if needed other request parameters like authorization header and cookie value for a mytoken string.
RequireMytokenNotRevoked checks that the passed mytoken.Mytoken was not revoked, if it was an error model.Response is returned.
RequireUsableRestriction checks that the mytoken.Mytoken's restrictions allow the usage.
RequireUsableRestrictionAT checks that the mytoken.Mytoken's restrictions allow the AT usage.
RequireUsableRestrictionOther checks that the mytoken.Mytoken's restrictions allow the non-AT usage.
RequireValidMytoken checks the passed universalmytoken.UniversalMytoken and if needed other request parameters like authorization header and cookie value for a mytoken string.