Rest API Documentation for authn-iam Conjur Cloud authenticator to get Conjur access token

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Rest API Documentation for authn-iam Conjur Cloud authenticator to get Conjur access token

L0 Member

Hi Team,

 

I would like to use authn-iam Conjur Cloud authenticator to get Conjur access token so I can retrieve secrets from Conjur using that. 

 

I am unable to rest API documentation for just this one. I am able to see documentation for other mechanism at Authenticate workloads | CyberArk Docs, just not the one I was looking for.

 

I am curious on what fields should be sent in the payload and headers.

 

Can someone help. If there is a postman collection for that, it will be even more helpful. If there is a sprint-boot connector that use this authn-iam authentication mechanism, that could also work.

3 REPLIES 3

L1 Bithead

@Jagan Chinthakayala​ 

POST /api/authn-aim/{service-id}/conjur/{host-id}/authenticate

See more details here: https://docs-staging.cyberark.com/pr/conjur-cloud/doc-16207-auth-enhancements/content/operations/authn/authenticate-awsiam-appid.htm?tocpath=Authenticate%20workloads%7CSecure%20cloud%20workloads%7CAuthenticate%20AWS%20resources%7C_____2#UsagewithAWSIAMAuthenticator

An old postman collection can be found here: https://community.cyberark.com/marketplace/s/#a35Ht000001pbwfIAA-a39Ht000003RwTYIA0

 

Thanks! @Inbal Zilberman-Kubovsky​ 

 

What is this service-id? I am using default for now. Who can I contact to get the value of service-id?

 

I am getting 403 accessing https://docs-staging.cyberark.com/pr/conjur-cloud/doc-16207-auth-enhancements/content/operations/authn/authenticate-awsiam-appid.htm?tocpath=Authenticate%20workloads%7CSecure%20cloud%20workloads%7CAuthenticate%20AWS%20resources%7C_____2#UsagewithAWSIAMAuthenticator.

?

Is it possible to download and attach here.

 

Also postman collection does not have authn-iam request. Can you please provide one that has.

L1 Bithead

Hi @Jagan Chinthakayala​ , let's see if I can help.

​

  • "​service-id" is the name given to the authenticator, in your case it should be configured, as a policy, under /conjur/authn-iam/<service-id>
  • This can be any given name as a string, for example "prod", or "default", or even the numeric account id "0123456789".
  • You can check Authenticators enabled from the Conjur Cloud UI, by clicking on "Authenticators". The type will show as "AWS IAM", with the relevant icon.
  • A new AWS IAM authenticator can be configured via policy, following the steps in our documentation.
  • Error 403 is usually a problem with authentication and permissions. When are you getting this error exactly?
  • You can find our spring-boot SDK here. I haven't personally tested it, however I believe if a Conjur short lived authentication token is collected beforehand, it should be usable for authentication.
  • You can find an authentication example with RestAPI in our OpenSource documentation, using the "BASH" tab to see how the curl request can be composed.
  • 5 Views
  • 3 replies
  • 0 Likes
Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

Click Accept as Solution to acknowledge that the answer to your question has been provided.

The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!

These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!

The LIVEcommunity thanks you for your participation!