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
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 Visual Studio 2019. When I tried accessing the URL of my Azure Function App, I got an 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"
}
}

When I tried to access the Azure Function URL, as highlighted above, I got this error.
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

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

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 you used to register the Azure Function apps that you are trying to access. In my case, it is MySecureApp.

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.

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 response_type ‘id_token’ is not enabled for the application, 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