Prerequisites
Please answer the following questions before submitting an issue. YOU MAY DELETE THE PREREQUISITES SECTION.
- What is your product version? v11.2.1
- What is your product type (Angular or MVC)? Angular
- What is product framework type (.net framework or .net core)? .net core
We are customizing the login experience to only use Azure AD for Authentication. a. How can we customize the login flow for swagger page. is there any sample / reference to use. This is the current swagger page, which we want to change and use azure ad authentication.
Similar to below screen:where users are already having azure AD Account. They are authenticated against Azure AD. Looking for sample reference in cshtml , which we would require to do for Swagger and Hangfire. Which Methods/ Controllers would require change. Not able to find any documentation.
3 Answer(s)
-
0
Hi,
This part (Host app and Swagger UI) is mostly for the system managers. Do you want all users to login and use swagger UI ? Because Angular UI already has Azure AD login implemented.
Thanks,
-
0
Hello, We are maintaining all authentication via azure ad. Now this is definitely not for endusers, in fact will be maintained and used by system/dev group, but in order to ensure that this endpoint is till protected, we wanted to use azure ad. Can you help with a sample reference / guidance. We don't want to customize it too much, so that at a later point we end up with lot framework migration(aspnetzero version upgrade) conflicts, hence need your input/suggestions and samples.
-
0
Hi,
Got it, thanks. In that case, you an copy some code from MVC project to the Host project. These are the related methods for external login operation;
You also need to copy this cshtml code to your Host Login page;
I hope this helps.