Azure-Samples/active-directory-angularjs-singlepageapp-dotnet-webapi

Two issues in sample

michaelsync opened this issue · 1 comments

Hi,

Thanks for providing this example. I've been playing around and found two issues. Feel free to let me know if I miss out something.

  1. "Authorization has been denied for this request." for "To Do List"

ToDoList controller is in SPA project but I got this error above after login.

Steps to replicate ~

  • Run the project
  • Open this link https://localhost:44326 in Chrome private mode
  • Click on 'To Do List' (It will ask you to log in. I logged in with my account )
  • It shows "Authorization has been denied for this request." in ToDoList page after successfuly logged in.
  • Check the Login/Logout text on the header (You will see the "Log out" - so it means the login was a success as well.)
  1. 'Login/In' text
  • Follow the step above.
  • Click on 'To Go List'
  • Observe the Login/Logout text on the header - (Error: It changed it to 'Login' again. )
  • ERROR: You will get the "Authorization has been denied for this request." in 'To Go List' as well.
  • Click back on "To Do List" again. (same auth error)
  • Click again on "To Go List" - (There, you will see the list. and the text on the header is still 'Login'. )

image

Note: Please ignore the data. As I mentioned here, I replaced the DAL with a List.

Thanks. Feel free to let me know if you need more information or if I miss out something.

Closing this as we are archiving this sample. Please check out the new sample at ms-identity-javascript-angular-spa-aspnetcore-webapi.