Forum Discussion
Dzeneralen
Apr 14, 2023Copper Contributor
App Service Easy auth and disabling /.auth/me
I plan on using Easy Auth with a ASP.NET Core web application hosted on Azure App Service with the Linux flavor. From my understanding Easy Auth adds a couple of endpoints to the app service: /...
azharamir13
May 22, 2023Brass Contributor
Easy Auth's default behavior is to secure all endpoints of your web application and redirect unauthenticated requests to the authentication provider. However, it is possible to disable Easy Auth for specific endpoints while still maintaining access to a token store. This can be achieved by configuring route exclusion rules.
Mark as Like if the answer helps
Mark as Like if the answer helps
Dzeneralen
May 23, 2023Copper Contributor
I tried editing excludedPaths using https://resources.azure.com/ within authsettingsV2 and set it to "/.auth/me" but had troubles getting it to work. Have you had any success in excluding those URLs and not receiving tokens?
Also had contact with Microsoft Support, and it seems the only way to disable these URLs are through disabling the token store at this point in time.