Azure Active Directory OIDC Redirect Error

Hi, I am currently in the process of implementing Azure Active Directory OIDC authorization for a Swagger API.
However, I am currently experiencing an issue regarding the C# authorize attribute.
It appears to log me in correctly using my credentials but on calling a method it returns the markup for the Microsoft login page.
If I follow this link through the inspect network tab then it displays the error or text that would be expected from the call.
After following this link, the call stops returning the markup and returns what is expected.
I have attached a link to a video below to demonstrate the error.
Thanks in advance.

https://matthew-gilmore-dnvgl.tinytake.com/df/11fb3e6/thumbnail?type=attachments&version_no=0&file_version_no=0&thumbnail_size=preview

3 Likes

Seems like the swagger UI config is incorrect. PM me on teams and we can have a look.

/Jonas

5 Likes