question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

response_type 'id_token' is not enabled for the application

See original GitHub issue

Core Library

@azure/msal-browser

Core Library Version

2.12.0

Wrapper Library

@azure/msal-react

Wrapper Library Version

1.0.0-beta.0

Description

I have created a new app registration and added on Authentication SPA and in Redirect URLS I have typed:

https://localhost:3000/ and my azure url https://dev-luloui.azurewebsites.net/

The app is enabled multiple organizations, so anyone can try it.

However I get the error above in the title response_type 'id_token' is not enabled for the application

libraries used: “@azure/msal-browser”: “^2.12.0”, “@azure/msal-react”: “^1.0.0-beta.0”,

MSAL Configuration

import { Configuration, PopupRequest } from "@azure/msal-browser";

// Config object to be passed to Msal on creation
export const msalConfig: Configuration = {
    auth: {
        clientId: "c1074030-bf88-4aa0-ad1a-6fd14b8462db",
        authority: 'https://login.microsoftonline.com/organizations/',
        redirectUri: "http://localhost:3000"
    }
};

// Add here scopes for id token to be used at MS Identity Platform endpoints.
export const loginRequest: PopupRequest = {
    scopes: ["User.Read"]
};

// Add here the endpoints for MS Graph API services you would like to use.
export const graphConfig = {
    graphMeEndpoint: "https://graph.microsoft.com/v1.0/me"
};

Relevant Code Snippets

No response

Identity Provider

Azure AD / MSA

Source

External (Customer)

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:10

github_iconTop GitHub Comments

1reaction
levalenciacommented, Apr 15, 2021

thanks a lot, that last setting was the one causing the behavior. I had authentication enabbled on the azure app service, I assumed I had to put it because for a .net core webapi I had it enabled too. Maybe a good remark for the documentation

0reactions
derisencommented, Apr 15, 2021

@levalencia you’re welcome! Check out one of the deployment guide we have here. Closing this as resolved.

Read more comments on GitHub >

github_iconTop Results From Across the Web

response_type 'id_token' is not enabled for the application ...
How to Solve : goto Azure AD => App registration => click tab Authentication => enabled Access tokens and ID tokens check-boxes. Share....
Read more >
response_type 'id_token' is not enabled for the application
Hi, I registered a single-page application (SPA) in the Microsoft identity platform for MSAL v2. Firstly I tried on dev server and can...
Read more >
How to fix "AADSTS700054: response_type 'id_token' is not ...
Fixing “AADSTS700054: response_type 'id_token' is not enabled for the application” error · Enable the implicit authentication flow. You'll need ...
Read more >
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.
Read more >
Fix – AADSTS700054: response_type 'id_token' is not ...
To fix it, go to Manifest of the application registered and set oauth2AllowIdTokenImplicitFlow to true. Another option of setting this property ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found