So i'm trying to build off Identitie's individual authentication system but every check I do for a Role of the User returns with false, here is my controller for logging in which I would redirect the user if I could do a role check.
var result = await SignInManager.PasswordSignInAsync(model.Email, model.Password, model.RememberMe, shouldLockout: false);
switch (result)
{
case SignInStatus.Success:
var r = Roles.IsUserInRole( "Trainer");
var y = User.IsInRole("Trainer");
return RedirectToAction("index", "Home");
Every time i've run this both of these methods(vars r and y) return false. I have enabled RoleManager with
<roleManager enabled="true" defaultProvider="AspNetWindowsTokenRoleProvider"/>
And I for sure have a Role "Trainer" since I run this to make a test user
await UserManager.AddToRoleAsync(user.Id, "Trainer");