Invalid grant: The provided JWE contains a field that is not base64 compliant

Khushal Singh 21 Reputation points
2021-05-18T02:53:33.96+00:00

Hi @AmanpreetSingh-MSFT ,

We are having a similar issue as per this question, "https://social.msdn.microsoft.com/Forums/en-US/6d2bbcae-e08d-4eab-b482-94fcc52bc4b7/azure-active-directory-b2c-authorization-code-encoding-issue?forum=WindowsAzureAD"

Would you be able to suggest if there's a way to correct this using custom policy or it has to be done in application code?

Thanks in advance.

Microsoft Security | Microsoft Entra | Microsoft Entra External ID
{count} votes

Accepted answer
  1. AmanpreetSingh-MSFT 56,876 Reputation points Moderator
    2021-05-25T16:51:52.383+00:00

    Hi @Khushal Singh · Thanks for the update.

    I checked on this. There is no option in B2C to remove # from the authorization code. As of now, you should continue using the fix applied in your code.

    -----------------------------------------------------------------------------------------------------------

    Please "Accept the answer" if the information helped you. This will help us and others in the community as well.

    0 comments No comments

0 additional answers

Sort by: Most helpful

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.