If we have not enabled the application to request an id_token directly from the Authorization Endpoint (while writing Single Page Application that uses Implicit Flow Grant), we would get the below error à
To fix it, go to Manifest of the application registered and set oauth2AllowIdTokenImplicitFlow to true.
Another option of setting this property is through Authentication à Advanced Settings section of the Application.
Similarly, if the application is expecting Access tokens i.e. token and if that is not enabled, we will get the below error
AADSTS700051: response_type ‘token’ is not enabled for the application.
To fix it à
Set oauth2AllowImplicitFlow: true
Hope it helps.