fiware-pep-proxy icon indicating copy to clipboard operation
fiware-pep-proxy copied to clipboard

Testing Proxy as per readme.md gives an unexpected response

Open YatinArora-NEC opened this issue 5 years ago • 0 comments

Hi All I am facing issue in this command curl --header "X-Auth-Token:z2zXk...ANOXvZrmvxvSg" http://proxy_host. I am confused what proxy_host means here .

I tried with curl --header "X-Auth-Token:<oauth2_token>" http://pep-proxy-ip:port-no and received response as "User Token not authorized".

But from here "https://github.com/ging/fiware-pep-proxy" curl --header "X-Auth-Token:z2zXk...ANOXvZrmvxvSg" http://proxy_host it gives result as

"Once authenticated, the forwarded request will include additional HTTP headers with user info:

X-Nick-Name: nickname of the user in IdM X-Display-Name: display name of user in IdM X-Roles: roles of the user in IdM X-Organizations: organizations in IdM "

How can i get the above result from this command curl --header "X-Auth-Token:z2zXk...ANOXvZrmvxvSg" http://proxy_host

YatinArora-NEC avatar Mar 07 '19 10:03 YatinArora-NEC