8/30/2023 0 Comments Postman interceptor post token![]() ![]() ![]() Please comment with your thoughts on any suggestions and improvements needed. Hope you find this post useful and will add some value for IFS Aurena debugging and developments. To avoid this error, check the XSFR-TOKEN cookie and see if it matches the X-XSRF-TOKEN header value "code": "CSRF_ERROR", "message": "A security error occurred while processing the request." If you get any error like below, most possible cause could be token mismatch. If the cookies are missing, then you can re-generate them by Logout from Aurena, clearing cookies from Internet Options and login again. It will return HTML view, however it will set necessary cookies which makes you logged in. First, you click on GET token, then POST login credentials payload. Add POST endpoint to Login and add the same test. I’ve noted that the following cookies should be available to properly execute the request without errors. 'Host-next-auth.csrf-token' and 'ssion-token' I use to test Postman when deployed on Vercel. Modify the If-match header with the ETAG and then should be able to execute the DELETE operation Some Tips… Cookies As you can see everything you need to execute the request from Postman is already there (Query parameters, column list, Auth headers, cookies) and you can Invoke the request. Open the GET request for PartHandling.svc/PartCatalogSet. This can use as a alternate troubleshoot tool in addition to IFS debug console. You can see all the server calls made from Login until the Part record is retrieved. Open Postman and check the collection you specified the requests to save in previous step. You should see the captured requests in the Interceptor Chrome extension and typically the call on top should be the corresponding server call to GET the part details. Login to IFS Aurena client using Chrome as usual and navigate to Master Part > Part page and search for a part No. We’ll see how to capture the Aurena requests Master Part record Capturing Aurena Server Requests for Query a Part Record Now we are all set with setup capturing IFS requests with Postman! Capturing IFS Aurena requests Now go to the Cookies tab, set Capture Cookies ON and add your IFS domain If you have many tabs open, it’s good to have some filter to define, but tit’s not mandatory.Select an Collection to save the requests.If the Interceptor extension is properly installed, you can see the Interceptor Connected with green dot Go to the Requests tab ,Toggle Source to the Interceptor.Open Postman and click on the Satellite Icon Verify whether you have it installed in the Chrome Extensions What Will Cover…ĭownload and install the Postman Chrome extension Here are the steps you need to follow in order to capture Aurena invokes with postman. I was searching for alternate ways of invoking IFS Auera calls and found that the Postman Interceptor is really cool tool and you can invoke all IFS Aurena invokes without any addition step. ![]() Invoking IFS Aurena projections from 3rd part tools like Postman has been a challenge so far and my current finding so far is that calling a projection requires session cookies and it does not work with OAuth2 token. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |