In this Azure tutorial, we will discuss how to fix the 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 Visual Studio 2019.
Table of Contents
‘aadsts700054: response_type ‘id_token’ is not enabled for the application.
I recently worked with the Azure Function Code to implement Azure AD authentication to secure the Azure Function. After running the Azure Function project in Visual Studio 2019, I used the Azure Function URL in my Local.settings.json file. However, when I tried accessing the URL of my Azure Function App, I got this error.
Below is 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"
}
}
I got this error when I tried to access the Azure Function URL, as highlighted above.
The complete error message was as below

Solution
I was able to fix this issue by following the below steps
1. log in to the Azure Portal (https://portal.azure.com/)
2. 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

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

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

Now, if you try to access your Azure Function URL, you should not face any issues this time.
Wrapping Up
In this article, we discussed How to fix the error AADSTS700054: response_type ‘id_token’ is not enabled for the application. I hope it will help you to fix your issue as well !!!
I am Bijay, a Microsoft MVP (10 times) having more than 17 years of experience in the software industry. During my IT career, I got a chance to share my expertise in SharePoint and Microsoft Azure, like Azure VM, Azure Active Directory, Azure PowerShell, etc. I hope you will learn from these Azure tutorials. Read more
