AuthorizationContext
getContext
global static AuthorizationContext getContext(String startURL);
Input
startURL
: the startURL which is passed to your VisualForce Page. This method requires the current code to run on a valid authorization request on a valid Realm.
Return
A context object.
community
global Community community;
Return
Utility method to retrieve the current
Communityclient
global AuthorizationContext.Client client;
Return
request
global AuthorizationContext.Request request;
Return
An object represeting the current
request. Use this object instead of parsing the startURL yourself.
consent
global UserContext.Consent consent;
Return
Consent of the user for the current Client.