Angular Cli Template: Best way to handle authorization via .NET #268

Closed
opened 2025-08-09 17:15:38 +00:00 by fergalmoran · 0 comments
Owner

Originally created by @chrisvfabio on 12/13/2017

Is there any way to apply .NET authorization using the new Angular SpaPrerendering? Previously I had my HomeController with [Authorize] which handled the authorization challenge and then return the prerendered result using NodeServices into razor, but the new middleware doesn't use razor anymore, so what's the best way to trigger authorization on the server (via oidc)

I could use the implicit flow using an angular package, but I prefer to use the hybrid flow with .NET's oidc. Thanks!

*Originally created by @chrisvfabio on 12/13/2017* Is there any way to apply .NET authorization using the new Angular SpaPrerendering? Previously I had my HomeController with `[Authorize]` which handled the authorization challenge and then return the prerendered result using NodeServices into razor, but the new middleware doesn't use razor anymore, so what's the best way to trigger authorization on the server (via oidc) I could use the implicit flow using an angular package, but I prefer to use the hybrid flow with .NET's oidc. Thanks!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/JavaScriptServices#268
No description provided.