rest - accessing jhipster demo app with postman -
i have created jhipster demo app , want check adapted rest api tool postman. have tried basic auth , user , password both set admin, user or system. none of them can access, getting 401.
would nice if give me hint access it.
cheers markus
because postman separate app (instead of extension), can't access cookies directly. however, it's still possible use postman session-auth jhipster app.
- first, authenticate jhipster app
- in browser's developer tools, inspect response
/api/authenticationset-cookie headers (jsessionid , x-xsrf-token). can find cookies elsewhere in browser's developer console, in chrome under application tab. - edit cookies in postman add
jsessionid,x-xsrf-tokencookies. "cookies" tab request image below. - once cookies set, requests authenticated same user logged in in step 1.
for postman , jwt auth, see this answer.

Comments
Post a Comment