Skip to main content

%OAuth2.Login

class %OAuth2.Login extends %CSP.Login

%OAuth2.Login is the base class for login pages which use OAuth 2.o or OpenID Connect. The usual login class will only override the APPLICATION and SCOPE parameters.
Additional customization may be done by overriding the RESPONSEMODE parameter and DefineProperties method.
The login page will directly login the session using delegated authentication. See loginZAUTHENTICATE.mac in the SAMPLES namespace for an exaample ZAUTHENTICATE routine.

Method Inventory

Parameters

parameter APPLICATION;
The application name for the application being logged into.
The actual login page will need to override this parameter.
parameter RESPONSEMODE;
The RESPONSEMODE parameter specifies the mode of the response as either query, fragment or form_post. The default is query.
parameter SCOPE;
The blank separated scope list to be used for the access token request. The actual login page will need to override this parameter.

Methods

classmethod DefineParameters(Output application As %String, Output scope As %String, Output responseMode As %String)
Callback to allow the overriding login subclass to define the class parameter values at run-time
The default to use the class parameter values.
classmethod DefineProperties(Output properties As %String)
Callback to allow the overriding login subclass to define the properties list for the GetAccessTokenAuthorizationCode call.
properties is a local array specifying additional properties to be included in a token request in the form properties(name)=value. To add a request parameter which is a JSON object, you may either create a properties element which is a %DynamicObject or is a string that is the UTF-8 encoded serialized object. For example the claims parameter that is defined by OpenID Connect. If the request or request_uri request parameters are to be used, then the %SYS.OAuth2.Request class is used to create the JWT. The the JWT is assigned to properties("request") or the URL for the JWT is assigned to properties("request_uri")

Inherited Members

Inherited Methods

FeedbackOpens in a new tab