loginCrossDomain
- Home
- Accounts & Sessions
- Session
- loginCrossDomain
loginCrossDomain
Validates a user’s credentials and creates a session. Generates a redirect url to handle core_u and core_x cookies.
Parameters
Name | Description |
node_id optional | Node ID |
domain optional | Domain |
user_id optional | User ID |
username optional | Username |
email optional | |
password required | Password |
callback_url required | Callback URL |
ip optional | IP Address |
expires optional | Expiration (Seconds) |
off_network optional | Off Network |
return_cookies optional | Return Session Cookies |
Request Syntax
https://services.onesite.com/1/session/loginCrossDomain.json?node_id=188234&username=onesitedemo&password=5r49klsy&callback_url=https://www.example.com&devkey=[devkey] |
JSON Response
1 2 3 4 5 6 7 |
{ "code":100, "message":"Login successful.", "content":{ "redirect_url":"http://onesitedemo.com/tools/token.one?token=P3VzZXI9b25lc2l0ZWRlbW8sb25lc2l0ZWRlbW8uY29tJmNvcmVfdT0mZXhwPTE1NDg5NzMzMTcwMDAmb3JpZ2luX3VybD1odHRwOi8vd3d3LmV4YW1wbGUuY29tJmg9NDYyZDY0NGIzM2M2NjFmMTI0NmE4ZTM4NTg0MWNlMzNlMmQxNzRjMSZvZmZuZXQ9b2ZmbmV0Jm9mZm5ldF9yZXR1cm5fc2lkPTE." } } |
Service Information
Service | session |
Method | loginCrossDomain |
Type | REST |
Response Types | JSON, XML |