All URIs are relative to http://http:/v1
Method | HTTP request | Description |
---|---|---|
loginIpGet | GET /login/ip | Login with IP |
loginPost | POST /login | Login with email and password |
loginSsoPost | POST /login/sso | Disabled. Always returns 403. |
loginUuidDelete | DELETE /login/{uuid} | Logout |
LoginResponse loginIpGet(xRealIP, paper)
Login with IP
Returns auth & token for customers with IP based entitlement
var Persona = require('persona');
var apiInstance = new Persona.LoginApi();
var xRealIP = "xRealIP_example"; // String |
var paper = "paper_example"; // String |
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.loginIpGet(xRealIP, paper, callback);
Name | Type | Description | Notes |
---|---|---|---|
xRealIP | String | ||
paper | String |
No authorization required
- Content-Type: Not defined
- Accept: application/json;charset=utf-8
LoginResponse loginPost(body)
Login with email and password
var Persona = require('persona');
var apiInstance = new Persona.LoginApi();
var body = new Persona.LoginData(); // LoginData |
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.loginPost(body, callback);
Name | Type | Description | Notes |
---|---|---|---|
body | LoginData |
No authorization required
- Content-Type: application/json;charset=utf-8
- Accept: application/json;charset=utf-8
LoginResponse loginSsoPost(body)
Disabled. Always returns 403.
var Persona = require('persona');
var apiInstance = new Persona.LoginApi();
var body = new Persona.LoginDataSSO(); // LoginDataSSO |
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.loginSsoPost(body, callback);
Name | Type | Description | Notes |
---|---|---|---|
body | LoginDataSSO |
No authorization required
- Content-Type: application/json;charset=utf-8
- Accept: application/json;charset=utf-8
[Object] loginUuidDelete(uuid, opts)
Logout
Authorization header expects the following format ‘OAuth {token}’
var Persona = require('persona');
var apiInstance = new Persona.LoginApi();
var uuid = null; // String |
var opts = {
'authorization': "authorization_example", // String |
'everywhere': false // Boolean |
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.loginUuidDelete(uuid, opts, callback);
Name | Type | Description | Notes |
---|---|---|---|
uuid | String | ||
authorization | String | [optional] | |
everywhere | Boolean | [optional] [default to false] |
[Object]
No authorization required
- Content-Type: Not defined
- Accept: application/json;charset=utf-8