I recently made changes to my web site (incorporating a web form and entity framework) to use AAD connection, following the guidance in this insightful blog post.
However, I am encountering an issue where scripts and css files are not loading properly. The server is responding with a 401 error for base.css, jquery-3.1.1.min.js...
To troubleshoot, I updated the authentication mode in my web.config file and disabled all forms of authentication (Anonymous, windows...) in IIS. I also granted full control rights to the project folder.
Interestingly, when I enabled anonymous authentication as a test, the site worked temporarily but reverted back to formatting issues when accessed from another browser. This behavior baffles me.
Could someone offer assistance? Is there something I need to adjust in IIS or elsewhere?
Thank you for any help.
Update: I have assigned a technical user permissions on the project folder through the app pool identity. However, it seems that Azure AD users are still being used and lack the required access rights. How can I ensure that my technical user is utilized after any Azure AD user logs into the website?