Last post May 14, 2018 09:00 AM by Nan Yu
May 12, 2018 03:38 PM|bobj181|LINK
I am following the below example:
The code will compile and deploy. However, the API Controller that I have tagged with Authorized, it will only tell me that I am not authorized. Is there a way to instead of having it state that I am not authorized, but redirect me to the Azure AD Login
Thank you in advance for your help.
May 12, 2018 04:01 PM|mgebhard|LINK
Web API does not have a UI. Your web application must handle the authentication.
May 14, 2018 09:00 AM|Nan Yu|LINK
As a supplement, you can refer to Authentication scenarios for Azure AD and choose the scenarios base on your requirement :
To web api ,special scenario(on-behalf-of flow) is :
A user has authenticated on a native application, and this native application needs to call a web API. Azure AD issues a JWT access token to call the web API. If the web API needs to call another downstream web API, it can use the on-behalf-of flow
to delegate the user’s identity and authenticate to the second-tier web API :