Migrate Azure App Service to use Graph API instead of AAD Graph api

Raman, N. (Nandhini) 0 Reputation points
2025-05-01T13:38:55.0566667+00:00

Hi Team,

I'm in a process of Migrating our Azure App Service application to use graph api instead of AAD Graph api.

I followed the steps which is mentioned in the article

https://github.com/microsoftgraph/msgraph-training-aspnetmvcapp/blob/main/Demos/03-add-msgraph/graph-tutorial/Helpers/GraphHelper.cs

unfortunately its not yet successful.

Throwing an exception

"OpenIdConnectMessage.Error was not null, indicating an error. Error: 'invalid_request'. Error_Description (may be empty): 'AADSTS90014: The required field 'nonce' is missing from the credential. Ensure that you have all the necessary parameters for the login request. Trace ID: 841e0b30-ec41-4be2-9ccd-cd2bed780b00 Correlation ID: 7f2cc928-308b-4e49-9560-d5f0db50c719 Timestamp: 2025-05-01 13:08:50Z'. Error_Uri (may be empty): 'https://login.microsoftonline.com/error?code=90014'."

redirecturi: https://login.microsoftonline.com/common/oauth2/v2.0/authorize?client_id=4d878a1c-38d2-4281-9a41-de01730836bc&redirect_uri=http%3A%2F%2Flocalhost%3A53236%2F&response_type=code%20id_token&scope=openid%20profile&state=OpenIdConnect.AuthenticationProperties%3DLMfLyl5svt9e2KnzYPe2pTLFWNgurXAINXk2ZIfcn48GOklVyQ0qVFobN1IrNNg_lbKNo3ZwNg6ExX7J7YzP4M5kZr1NHbFKv9umh-CuKqWHC7KKxkQRR6B-sPDa7mT9zFgQnTjFL8Wwb88IqI6YTYJr1l8d5pUXGB6T2fznjl4&response_mode=form_post&nonce=54138daf-72ac-4723-a957-d07994fc2288&x-client-SKU=ID_NET462&x-client-ver=8.6.1.0../../../Users/M65J805/AppData/Local/SourceServer/c9a9e63c299f57579ab6aa8683f05120d43ad92f44da9f1a7ca96c6e9734630e/src/Microsoft.Owin.Security.OpenIdConnect/OpenidConnectAuthenticationHandler.cs

can someone point where the actual issue is?

thanks,

Nandhini

C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
11,431 questions
0 comments No comments
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.