I am using ASP.Net core 2.2. I redirect to an identity server instance, which then redirects back to my MVC app. The redirect back url is of the form:
http://localhost:8081/home/fetchtokenresponse#id_token=longtokenvalue&token_type=Bearer&expires_in=3600&scope=myscopes&session_state=jizlw_6DiGhYvkGk6fKRKkhZQoFlYKJ5v1_2Lwd-caI.MN0g0HwpGuulkwKleHtJCg
In my action I want to be able to read the parameters like
public IActionResult FetchTokenResponse(string id_token)
What I have tried
I tried adding a new route with a has tag, but this appears to be illegal:
routes.MapRoute(
name: "default",
template: "{controller=Home}/{action=Index}#{id?}");
Is there another way to intercept the path and redirect to my action?
subclaim (by default), and if not (because you may have setoptions.GetClaimsFromUserInfoEndpoint = true), these claims are automatically added to the cookie.