Quantcast
Channel: Active questions tagged rest - Stack Overflow
Viewing all articles
Browse latest Browse all 3655

apach nifi 1.16.3 no return __Secure-Request-Token cookie when calling restapi 'access/token'

$
0
0

i have a single instance of apache nifi 1.16.3 with self-sign certification. when using postman to test call the rest api https://localhost:8443/nifi-api/access/token, it only returns 1 cookie: __Secure-Authorization-Bearer. However, when checking the "network" info in chrome after the login UI, it shows 2 cookies: __Secure-Authorization-Bearer and __Secure-Request-Token.

  • postmanenter image description here

ref code:

curl --location --request POST'https://localhost:8443/nifi-api/access/token'
--header 'Content-Type: application/x-www-form-urlencoded'
--data-urlencode 'username=nifiuser'
--data-urlencode 'password=nifipassword'

  • chrome

enter image description here

May I know how to get the __Secure-Request-Token cookie thru apache nifi restapi?

PS, in apache nifi 1.27, the api https://localhost:8443/nifi-api/access/token returns the expected 2 cookies


Viewing all articles
Browse latest Browse all 3655

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>