Token issuance - Access has been blocked by Conditional Access policies.

Sarish Tabish Sayyed 45 Reputation points Microsoft Vendor
2024-08-27T14:03:13.99+00:00

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.

Azure Key Vault
Azure Key Vault
An Azure service that is used to manage and protect cryptographic keys and other secrets used by cloud apps and services.
1,283 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Sarish Tabish Sayyed 45 Reputation points Microsoft Vendor
    2024-09-03T11:49:21.3133333+00:00

    I was able get over this issue by disabling IPv6, don't know why that mattered but I'm good for now, thanks!

    0 comments No comments

  2. James Hamil 24,661 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

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.