Venafi SaaS - Service Account - Custom API - Leveraging Azure for JWT and swapping that, for an access token.

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

Venafi SaaS - Service Account - Custom API - Leveraging Azure for JWT and swapping that, for an access token.

L0 Member

I'm having difficulty swapping the JWT from Azure, for an access token in Venafi.

 

Application Registration completed in Azure with token version set to 2. And application ID URI set to https://api.venafi.cloud

 

payload of JWT is configured as follows:

aud = "https://login.microsoftonline.com/<my tenant id>/oauth2/v2.0/token"

iss = <client id of azure application>

sub = <client id of azure application>

jti = <randomly generated guid>

nbf = <current time>

ecp = <10 minutes from current time>

 

I can successfully get a JWT from Azure specifying a scope of: https://api.venafi.cloud/.default

 

But for the life of me, I can't exchange for a venafi access token.

 

Anyone have any ideas? When I try to exchange the token, what should be in the body?

1 REPLY 1

L4 Transporter

Hi @Jeffery Brown​ Custom API Integration service accounts, it sounds like there may be a misunderstanding about which JWT you're exchanging and what claims Venafi expects

Overview: Custom API Integration service accounts - Machine Identity Security Docs

  • 82 Views
  • 1 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!