How to handle conjur user session

When i authenticate Conjur using REST API I am getting a Json response like {“protected”: “", “payload”: "”, “signature”: “******”}. when i use this like protected.payload.signature as authorization token I am getting an error with 401. What i am doing wrong here? How can i handle session in Conjur?

You’ll need to base64 encode the token before sending it in the Authorization header. Please see https://docs.conjur.org/Latest/en/Content/API/#authentication-authenticate-post for details and an example of how to format the token. Note also that while testing, you can create a pre-formatted token using the CLI with the option conjur authn authenticate -H after you’ve logged in to compare against what you’re getting with your REST API calls.

2 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.