You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| options.mode |`production`, `staging`, `develop`, `local`| false |`production`| <p>Environment for the SDK to connect to, the SDK will connect to the Moneytree production server by default.<ul><li>Moneytree clients should use `staging` for development as `develop` may contain unstable features.</li><li>`local` should only be used for SDK development as it has local dependencies.</li></ul></p> |
66
66
| options.locale | string | false | Auto detect. | Force Moneytree to load content in this specific locale. A default value will be auto detected based on guest langauges configurations and location if available. Check this [spec](https://www.w3.org/TR/html401/struct/dirlang.html#h-8.1.1) for more information.<br /><br />Currently supported values are:<br />`en`, `en-AU`, `ja`. |
67
67
| options.cobrandClientId (private) | string | false || <strong>NOTE: This is an internal attribute. Please do not use it unless instructed by your integration representative.</strong><br /><br />Brand Moneytree apps with client's branding. E.g: logo or theme. |
68
+
| options.samlSubjectId | string | false || Sets subject Id for saml session version. |
69
+
70
+
### setSamlSubjectId
71
+
72
+
The `setSamlSubjectId` method is used to set the value of the `saml_subject_id` parameter.
73
+
The `setSamlSubjectId` parameter allows the client to pass a guest identifier to Moneytree so that Moneytree can forward it to the Identity Provider (IdP) via the SAMLRequest.
74
+
The `saml_subject_id` parameter will be forwarded to the `authorize`, `logout` and `open-service` methods when defined.
75
+
76
+
<h6>Usage:</h6>
77
+
78
+
```javascript
79
+
mtLinkSdk.setSamlSubjectId(samlSubjectId);
80
+
```
81
+
82
+
| Parameter | Type | Required | Default Value | Description |
@@ -320,8 +337,9 @@ These common options are used in multiple APIs. Instead of repeating the same op
320
337
| options.backTo | string | false | Value set during `init`. | A redirection URL for redirecting a guest back to in the following condition: <li>Guest clicks on `Back to [App Name]` button in any Moneytree screen.</li><li>Guest refuses to give consent to access permission in the consent screen.</li><li>Guest logs out from Moneytree via an app with this client id</li><li>Revoke an app's consent from settings screen opened via an app with this client id</li><br /><br /><strong>NOTE:</strong> No `Back to [App Name]` button will be shown if this value is not set, and any of the actions mentioned above will redirect the guest back to login screen by default. |
321
338
| <spanid="authorize_option_auth_action">options.authAction</span> |`login`, `signup`| false | Value set during `init`.<p><strong>OR</strong></p>`login`| Show login or sign up screen when a session does not exist during an `authorize` call. |
322
339
| options.showAuthToggle | boolean | false | Value set during `init`.<p><strong>OR</strong></p>`true`| If you wish to disable the login to sign up form toggle button and vice-versa in the auth screen, set this to `false`. |
323
-
| options.showRememberMe | boolean | false | Value set during `init`.<p><strong>OR</strong></p>`true`| If you wish to disable the `Stay logged in for 30 days` checkbox in the login screen, set this to `false`. |
340
+
| options.showRememberMe | boolean | false | Value set during `init`.<p><strong>OR</strong></p>`true`| If you wish to disable the `Stay logged in for 30 days` checkbox in the login screen, set this to `false`. |
324
341
| options.isNewTab | boolean | false | Value set during `init`.<p><strong>OR</strong></p>`false`| Call method and open/render in a new browser tab, by default all views open in the same tab. |
342
+
| options.authnMethod | string || Value set during `init`. | Use different authentication methods. This can be a string with the following values:<br /><br />`sso`, `passwordless`, `credentials`. |
325
343
| options.sdkPlatform (private) | string | false | Generated by the SDK. | <strong>NOTE: this is for Moneytree internal use, please do not use it to avoid unintended behavior!</strong><br /><br />Indicating sdk platform. |
326
344
| options.sdkVersion (private) | semver | false | Generated by the SDK. | <strong>NOTE: this is for Moneytree internal use, please do not use it to avoid unintended behavior!</strong><br /><br />Indicating sdk version. |
0 commit comments