Forum Discussion
vmalla -
Below is postman collection file. Save this file as .json and import it on POSTMAN tool. After importing the file just update the URL and credentials.
{
"variables": [],
"info": {
"name": "DEMO TEST",
"_postman_id": "e2e70e34-333c-7fd3-59a1-9489427af7de",
"description": "",
"schema": "https://schema.getpostman.com/json/collection/v2.0.0/collection.json"
},
"item": [
{
"name": "API0AuthV1",
"request": {
"url": {
"raw": "https://community.url/restapi/vc/authentication/sessions/login?user.login=USERNAME&user.password=PASSWORD",
"protocol": "https",
"host": [
"community",
"demo",
"com"
],
"path": [
"restapi",
"vc",
"authentication",
"sessions",
"login"
],
"query": [
{
"key": "user.login",
"value": "USERNAME",
"equals": true,
"description": ""
},
{
"key": "user.password",
"value": "PASSWORD!",
"equals": true,
"description": ""
}
],
"variable": []
},
"method": "GET",
"body": {},
"description": ""
},
"response": []
}
]
}Hi TariqHussain,
I'm still getting the same response !!
302 if I use get and 'Invalid Cross-Origin Request.' if I use post method.
- TariqHussain8 years agoBoss
vmalla - Please confirm your username and password. It's your credential issue.
Sign in to react to this post - luk8 years agoBoss
Same happens if you just enter the GET url into the browser address field and request it without the Postman extension?
Sign in to react to this post- vmalla8 years agoAdept
Yes, If I use get request then I'm getting 302 error.
Sign in to react to this post- vmalla8 years agoAdept
I'm able to get session key if I'm logged into my instance and turn on the interceptor in Postman. If I'm not logged into community or if I turn off my interceptor, I'm getting '302 User Authentication Failed' error.
Sign in to react to this post