Redirect outside of the Controllers context in ASP.NET Core
问题 I do not know if this is actually possible, but I think it' s worth a try to find out. There are maybe other and better patterns (if you know one let me know, I will look them up) to do this, but I'm just curious to know if this is possible. When you have to call an API you could do it directly from within the controller using the HttpClient like this: [Authorize] public async Task<IActionResult> Private() { //Example: get some access token to use in api call var accessToken = await