Angular cli issue with Claims. #243

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

Originally created by @deadwards90 on 1/4/2018

I've been trying out the new Angular Cli template on Microsoft.DotNet.Web.Spa.ProjectTemplates::2.0.0-preview1-final. I've ported over a project and everything seems to build fine.

I have some middleware which decrypts a cookie and add some claims onto the User. This is then used in api calls, and works fine pre-cli template.

However, when I run it through the cli template the claims get added successfully but then the claims are empty on the api call.

Don't think I've done anything wrong when moving the code over, and none of the code has changed.

*Originally created by @deadwards90 on 1/4/2018* I've been trying out the new Angular Cli template on `Microsoft.DotNet.Web.Spa.ProjectTemplates::2.0.0-preview1-final`. I've ported over a project and everything seems to build fine. I have some middleware which decrypts a cookie and add some claims onto the User. This is then used in api calls, and works fine pre-cli template. However, when I run it through the cli template the claims get added successfully but then the claims are empty on the api call. Don't think I've done anything wrong when moving the code over, and none of the code has changed.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/JavaScriptServices#243
No description provided.