Skip to main content

OAuth2.Server.JWTid

persistent class OAuth2.Server.JWTid extends %Library.Persistent

SQL Table Name: OAuth2_Server.JWTid

The OAuth2.Server.JWTid is used to maintain a list of id of the JWTs which have been used to identify a client to the authorization server.

Property Inventory

Method Inventory

Properties

property Expires as %Integer;
Expires is the time in seconds from beginning of the Unix epoch when the JWT expires. After this time, there is no point in keeping a record of this JTI since it has already expired.
Property methods: ExpiresDisplayToLogical(), ExpiresGet(), ExpiresGetStored(), ExpiresIsValid(), ExpiresLogicalToDisplay(), ExpiresNormalize(), ExpiresSet()
property JTI as %String (MAXLEN = 1024) [ Required ];
JTI is the jti property of the JWT which has been sued for authentication
Property methods: JTIDisplayToLogical(), JTIGet(), JTIGetStored(), JTIIsValid(), JTILogicalToDisplay(), JTILogicalToOdbc(), JTINormalize(), JTISet()

Methods

classmethod IsNewJWT(jti As %String, expires As %Integer, Output sc As %Status) as %Boolean
A new JWT has been received. Return true if the JWT has not been used and save the JWTid record. Otherwise return false.

Indexes

index (IDIndex on JTI) [IdKey, Type = key, Unique];
The IDKEY for this class.
Index methods: IDIndexCheck(), IDIndexDelete(), IDIndexExists(), IDIndexOpen(), IDIndexSQLCheckUnique(), IDIndexSQLExists(), IDIndexSQLFindPKeyByConstraint(), IDIndexSQLFindRowIDByConstraint()

Inherited Members

Inherited Methods

Storage

Storage Model: Storage (OAuth2.Server.JWTid)

^OAuth2.Server.JWTidD(ID)
=
%%CLASSNAME
Expires
FeedbackOpens in a new tab