The OAuth2.Server.Generate is the default GenerateTokenClass which is included with the server. More...
Static Public Member Functions | |
_.Library.String | GenerateAccessToken (_.OAuth2.Server.Properties properties, _.Library.Status sc) |
The GenerateAccessToken method returns an access token. More... | |
_.Library.Boolean | IsJWT () |
The IsJWT method returns true if the GenerateAccessToken method returns a JWT. More... | |
_.Library.Status | OnRefreshAccessToken (_.OAuth2.Server.Properties properties) |
The OnRefreshAccessToken method will be called when a new access token is granted. More... | |
Additional Inherited Members | |
![]() | |
_.Library.Status | OnAddToSaveSet (_.Library.Integer depth, _.Library.Integer insert, _.Library.Integer callcount) |
This callback method is invoked when the current object is added to the SaveSet,. More... | |
_.Library.Status | OnClose () |
This callback method is invoked by the <METHOD>Close</METHOD> method to. More... | |
_.Library.Status | OnConstructClone (_.Library.RegisteredObject object, _.Library.Boolean deep, _.Library.String cloned) |
This callback method is invoked by the <METHOD>ConstructClone</METHOD> method to. More... | |
_.Library.Status | OnNew () |
This callback method is invoked by the <METHOD>New</METHOD> method to. More... | |
_.Library.Status | OnValidateObject () |
This callback method is invoked by the <METHOD>ValidateObject</METHOD> method to. More... | |
![]() | |
CAPTION = None | |
Optional name used by the Form Wizard for a class when generating forms. More... | |
JAVATYPE = None | |
The Java type to be used when exported. | |
PROPERTYVALIDATION = None | |
This parameter controls the default validation behavior for the object. More... | |
The OAuth2.Server.Generate is the default GenerateTokenClass which is included with the server.
The default class will generate a random string as the opaque access token.
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.
|
static |
The GenerateAccessToken method returns an access token.
The access token may 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.
However the method in this default class just returns an opaque random string.
Reimplemented in JWT.
|
static |
|
static |
The OnRefreshAccessToken method will be called when a new access token is granted.
based on a refresh token. If this method returns an error status, the refresh token request will fail.