Class: MASPluginConstants

MASPluginConstants

This class contains various MAS constants.
Sample constant access
var grantFlow = MASPluginConstants.MASGrantFlow.MASGrantFlowClientCredentials;

Type Definitions

MASGrantFlow

The constant which indicates the OAuth Grant Flow type to be used for all the requests.
Type:
  • Object
Properties:
Name Type Description
MASGrantFlowUnknown number Unknown grant flow type.
MASGrantFlowClientCredentials number The client credentials grant flow.
MASGrantFlowPassword number The user credentials grant flow.
MASGrantFlowCount number The total number of supported types.
Source:

MASPopupStyle

The default popup styles for UI elements in case of Authentication/OTP etc.
Type:
  • Object
Properties:
Name Type Default Description
MASPopupLoginStyle string "position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);height:100%;width:100%;overflow:auto" Default Login UI style
MASPopupOTPStyle string "position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);height:500px;overflow:auto" Default OTP UI style
Source:

MASRequestResponseType

The constant which indicates what data format is expected in a CRUD operation's request or a response.
Type:
  • Object
Properties:
Name Type Description
MASRequestResponseTypeUnknown number Unknown encoding type.
MASRequestResponseTypeJson number Standard JSON encoding.
MASRequestResponseTypeScimJson number SCIM-specific JSON variant encoding.
MASRequestResponseTypeTextPlain number Plain Text.
MASRequestResponseTypeWwwFormUrlEncoded number Standard WWW Form URL encoding.
MASRequestResponseTypeXml number Standard XML encoding.
MASRequestResponseTypeCount number The total number of supported types.
Source:

MASState

The constant which indicates the state in which the MAS process lifecycle is
Type:
  • Object
Properties:
Name Type Description
MASStateNotConfigured number States that SDK has not been initialized and does not have configuration file either in local file system based on the default configuration file name, nor in the keychain storage.
MASStateNotInitialized number States that SDK has the active configuration either in the local file system but has not been initialized yet.
MASStateStarted number States that SDK did start; at this state, SDK should be fully functional.
MASStateStopped number States that SDK did stop; at this state, SDK is properly stopped and should be able to re-start.
Source: