response_type ‘id_token’ is not enabled for the application

In this azure tutorial, we will discuss how to fix, response_type ‘id_token’ is not enabled for the application. This error I got after executing the Azure function Code to implement the Azure AD authentication to secure the  Azure function using the Visual Studio 2019.

response_type ‘id_token’ is not enabled for the application

Recently, I was working with the Azure function Code to implement the Azure AD authentication to secure the  Azure function. I was using the Azure Function URL in my Local.settings.json file. After running the Azure Function project in the Visual Studio 2019. When I tried accessing the URL of my Azure Function App, I got the error.

Below was the code for my Local.settings.json file

{
    "IsEncrypted": false,
  "Values": {
    "AzureWebJobsStorage": "UseDevelopmentStorage=true",
    "FUNCTIONS_WORKER_RUNTIME": "dotnet",
    "TenantID": "#########-0310-%%%%%%%-ae8b-42df2d549228",
    "ClientID": "8dd5dd1a-cf07-4df3-bf02-522067679212",
    "ClientSecret": "25Fbw-%%%%%%-QP5l7Pg1Tr_wG.UimW",
    "AudienceID": "c63889d3-d0b5-4d7c-23444-b86e9e215da5",
    "TargetURL": "https://mytargetazurefunctionapp.azurewebsites.net"



  }
}
response_type 'id_token' is not enabled for the application

When I tried to access the Azure Function URL as highlighted above, I got the below error

AADSTS700054: response_type ‘id_token’ is not enabled for the application.

The complete, error message was as below

Sorry, but we’re having trouble signing you in.

AADSTS700054: response_type ‘id_token’ is not enabled for the application.

You can see it here

AADSTS700054 response_type 'id_token' is not enabled for the application

response_type ‘id_token’ is not enabled for the application [Solved]

I was able to fix this issue by following the below steps

Login to the Azure Portal (https://portal.azure.com/)

Now, Once logged in to the Azure Portal, you can search for the Azure Active Directory and click on the search result Azure Active Directory

Where To Set Azure AD Reply URL

Now on the Azure Active Directory pane, click on the App registrations link from the left navigation, You can able to see all the Azure AD Apps you have created to register your Azure Applications or Azure Functions. Click on the particular Azure AD Apps which one you have used to register the Azure Function apps, that you are trying to access. In my case it is MySecureApp.

AADSTS700054 response_type 'id_token' is not enabled for the application error

Now on the Azure AD App page, click on the Authentication link from the left navigation and then select the ID tokens option as highlighted below, then click on the Save button.

AADSTS700054 response_type 'id_token' is not enabled

Now if you will try to access your Azure Function URL, you should not face any issue this time.

This is how you will fix the error response_type ‘id_token’ is not enabled for the application

You may also like following the below articles

Wrapping Up

In this article, we discussed How to fix the error response_type ‘id_token’ is not enabled for the application. Hope it will help you to fix your issue as well !!!

Leave a Comment