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.

  1. first, authenticate jhipster app
  2. in browser's developer tools, inspect response /api/authentication set-cookie headers (jsessionid , x-xsrf-token). can find cookies elsewhere in browser's developer console, in chrome under application tab.
  3. edit cookies in postman add jsessionid , x-xsrf-token cookies. "cookies" tab request image below.
  4. once cookies set, requests authenticated same user logged in in step 1.

sample screenshot showing edit cookies

for postman , jwt auth, see this answer.


Comments

Popular posts from this blog

cakephp - simple blog with croogo -

How to group boxplot outliers in gnuplot -

bash - Performing variable substitution in a string -