I'm experiencing an issue with a generative AI application that connects to SharePoint. Initially, the AI worked fine without authentication. However, after generating an application in Azure and obtaining the client ID and key, I am facing login problems. Despite adding the scopes 'profile openid Files.Read.All Sites.Read.All', authentication fails.

Error Message: When attempting to log in, I receive the following error message:

Yhanks alot in advance
Regards
Angela