I fixed the problem by checking ID tokens box in Azure Active Directory, App registrations, my function app, Authentication, Implicit grant. Found problem by seeing Azure AD log.
Thanks anyway.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
My goal: secure my azure function by azure active directory.
Steps:
Problem: when I enter my function url https://aes2020.azurewebsites.net/api/key in Browser I am asked to login to Azure active directory but then get error 'You do not have permission to view this directory or page.'. The browser url shows the callback url https://aes2020.azurewebsites.net/.auth/login/aad/callback. I am able to access the function if I set anonymous access.
What more I need to do?
Thanks in advance.
I fixed the problem by checking ID tokens box in Azure Active Directory, App registrations, my function app, Authentication, Implicit grant. Found problem by seeing Azure AD log.
Thanks anyway.