I was able get over this issue by disabling IPv6, don't know why that mattered but I'm good for now, thanks!
Token issuance - Access has been blocked by Conditional Access policies.
I am trying to issue a bearer token using a certificate from key vault, I am able to fetch the certificate however it fails in below code block
AccessToken token = await credential.GetTokenAsync(requestContext);
Exception: AADSTS53003: Access has been blocked by Conditional Access policies. The access policy does not allow token issuance. Trace ID: a05f1c86-f64d-4a52-bceb-8e7748064800 Correlation ID: 6a15fedb-c7a1-435b-86fe-5cb02073c939 Timestamp: 2024-08-27 13:52:42Z The returned error contains a claims challenge.
2 answers
Sort by: Most helpful
-
Sarish Tabish Sayyed 45 Reputation points Microsoft Vendor
2024-09-03T11:49:21.3133333+00:00 -
James Hamil 24,131 Reputation points Microsoft Employee
2024-09-06T19:35:55.3266667+00:00 Hi @Sarish Tabish Sayyed , thank you for confirming your answer! Since you can't verify your own answer, I'll repost it here for others to reference. Please mark "Accept Answer" for visibility.
Problem: Exception: AADSTS53003: Access has been blocked by Conditional Access policies. The access policy does not allow token issuance.
Solution: I was able get over this issue by disabling IPv6