on 06-25-2018 2:16 PM
Doing a POST Login from Postman perfectly works. The next gets/puts etc. are handled by Postman in the same session so I do get my results.
Now implementing the same logic, in an application i am building with Mendix. After each REST request is handled the session is terminated and cleaned after the response.
So I do the post login in session 1, the get businesspartners in session 2. Hence the service layer thinks new session: not authenticated and gives a 401 on the post/get or whatever follows the initial POST Login.
What other authentication options do I have...Can I get a token and reuse that? Or other solutions like providing the previously received b1-session?
Thanks for your help.
Jacob
Hi,
note that when you POST Login with Postman, you get a response containing (among other):
"SessionId": "2aba907c-6feb-11ed-8000-005056a901aa",
This part needs to be integrated in the Header of your next POST / GET. Postman does this automatically so you might have missed it because of that.
BR,
Matija
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Is any solutions for this problem???
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
104 | |
12 | |
11 | |
6 | |
5 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.