I've been plugging away at this issue for a bit now. I have a claim that regardless of what scope I add the claim to, is not added to the list of claims for the logged in user using the MVC Form POST example project.
The server sees the need to include the claims (by default they were part of the roles scope, but I've tried other scopes like email). My claim name is superadmin. The JWT when you look at what is posted back to the MVC app contains the superadmin claim. It however isn't parsed.
public class AuthOwin : AuthorizeAttribute
{
protected override bool AuthorizeCore(HttpContextBase httpContext)
{
var e = httpContext.GetOwinContext().Environment.GetIdentityServerFullLoginAsync().Result;
}
}
e.Claims does not contain the super admin claim. It has email, given_name, etc. But not my custom claim.
I've been plugging away at this issue for a bit now. I have a claim that regardless of what scope I add the claim to, is not added to the list of claims for the logged in user using the MVC Form POST example project.
The server sees the need to include the claims (by default they were part of the roles scope, but I've tried other scopes like email). My claim name is superadmin. The JWT when you look at what is posted back to the MVC app contains the superadmin claim. It however isn't parsed.
public class AuthOwin : AuthorizeAttribute { protected override bool AuthorizeCore(HttpContextBase httpContext) {
var e = httpContext.GetOwinContext().Environment.GetIdentityServerFullLoginAsync().Result; } }
e.Claims does not contain the super admin claim. It has email, given_name, etc. But not my custom claim.
Suggestions?