cancel
Showing results for 
Search instead for 
Did you mean: 

How can i authenticate for B1 service layer over multiple sessions?

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (2)

Answers (2)

mgregur
Active Contributor
0 Kudos

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

surath123
Explorer
0 Kudos

Is any solutions for this problem???