Hello members,
I'm encountering an issue while generating an access token using the JWT flow in PowerShell. Initially, I thought it might be a simple fix, but I've been troubleshooting for several hours without identifying the root cause.
Here's the situation:
- I'm using a PowerShell script to generate a JWT assertion and then use that assertion to retrieve a temporary access token.
- Unfortunately, my request is failing.
- For comparison, I generated a JWT using JWT.io with the same private and public keys, and it successfully retrieved an access token.
- I've verified that the structure and payload of both tokens appear similar(Check below, same iss and sub)
Working | Failing |
---|---|
|
|
At this point, I'm unsure what I'm missing. It could be a minor configuration error in my script.
I'd appreciate any troubleshooting suggestions you might have. Please let me know if you require any additional information.
Thanks,
Sachin Vashishth