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.
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.
- Microsoft.Azure.WebJobs.Host: Cannot bind parameter ‘name’ to type String
- Error While Redeploying The Azure Function System.Exception: Publishing failed
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"
}
}

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.
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

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, the one you have 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 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 or id_token’ is not enabled for the application
You may also like following the below articles
- ‘Authority’ Uri should have at least one segment in the path Error
- Web deployment task failed – cannot modify the file on the destination because it is locked by an external process
- The Specified Module ‘AzureRM’ Was Not Loaded
- The term ‘get-azuresubscription’ is not recognized
- CS1061 C# ‘HttpRequest’ does not contain a definition for ‘Content’ and no accessible extension method ‘Content’ accepting a first argument of type ‘HttpRequest’ could be found
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, How to fix “AADSTS700054: response_type ‘id_token’ is not enabled for the application” error. Hope it will help you to fix your issue as well !!!