%OAuth2.Server.JWT
class %OAuth2.Server.JWT extends %OAuth2.Server.Generate
The %OAuth2.Server.JWT is the GenerateTokenClass which creates a JWT which is included with the server. The GenerateTokenClass is specified in the Authorization Server Configuration. It must contain a GenerateAccessToken method will be used to generate an access token based on the array of properties that is returned by the ValidateUser method.Method Inventory
Methods
classmethod AddClaims(claims As %ArrayOfObjects, properties As %OAuth2.Server.Properties, json As %DynamicObject)
Add requested claims to the JWT
classmethod GenerateAccessToken(properties As %OAuth2.Server.Properties, Output sc As %Status) as %String
The GenerateAccessToken method returns a signed JWT to be used as an access token.
The access token claims will be based on the properties argument. In addition, values for claims
to be added to the JSON response object may be returned in the properties.ResponseProperties array.
The default implementation simply returns a JWT which is signed and optionally encrypted.
The default implementation simply returns a JWT which is signed and optionally encrypted.
classmethod IsJWT() as %Boolean
The IsJWT method returns true if the GenerateAccessToken method returns a JWT.
IsJWT is used to determine inclusion of algorithms for access token in server metadata.
Inherited Members
Inherited Methods
- %AddToSaveSet()
- %ClassIsLatestVersion()
- %ClassName()
- %ConstructClone()
- %DispatchClassMethod()
- %DispatchGetModified()
- %DispatchGetProperty()
- %DispatchMethod()
- %DispatchSetModified()
- %DispatchSetMultidimProperty()
- %DispatchSetProperty()
- %Extends()
- %GetParameter()
- %IsA()
- %IsModified()
- %New()
- %NormalizeObject()
- %ObjectModified()
- %OriginalNamespace()
- %PackageName()
- %RemoveFromSaveSet()
- %SerializeObject()
- %SetModified()
- %ValidateObject()
- OnRefreshAccessToken()