GetSessionForCredential
Creates and returns a session for the credentials provided.
This method is used for when you need a session for a user other than the one calling the script, or when a script does not have a user context by default (ex. S2S or Scheduled).
Method Parameters
Parameter | Description |
---|---|
externalId | User ID for the given authenticationType |
authenticationType | Type of authentication. Full list of types can be found here. |
externalAuthType | Optional parameter to specify the external authenticationType to use for the passed in credentials |
Usage
http://localhost:3000
- C#
- C++
- Objective-C
- Java
- JavaScript
- Dart
- Cloud Code
- Raw
// Cloud Code only. To view example, switch to the Cloud Code tab
// Cloud Code only. To view example, switch to the Cloud Code tab
// Cloud Code only. To view example, switch to the Cloud Code tab
// Cloud Code only. To view example, switch to the Cloud Code tab
// Cloud Code only. To view example, switch to the Cloud Code tab
// Cloud Code only. To view example, switch to the Cloud Code tab
var externalId = "example@email.com";
var authenticationType = "Email";
var externalAuthType = "someAuth";
var session = bridge.getSessionForCredential(externalId, authenticationType, externalAuthType);
var externalId = "example@email.com";
var authenticationType = "Email";
var externalAuthType = "someAuth";
var session = bridge.getSessionForCredential(externalId, authenticationType, externalAuthType);