Johnny
Explore posts from serversJWT refreshing + validatin/invalidating infinite error throwing
Hey, I have implemented a JWT refresh method (worked ast some point and then I tried adding invalidation - now it reruns indefinitely with error throwing all the time)
RefreshTokenAndJWT() is being called - Anyone an idea where the logic issue is?
if (!await ValidateAndInvalidateRefreshToken(refreshToken))
{
throw new InvalidOperationException("Invalid refresh token.");
}
is being spammed
1 replies
❔ Creating my first "bigger" Web Application with .net core (6.0) - project structure
Hey, I am currently having some struggle with defining a way of developing my Application -> It is planned to have User/Companies, Company accounts with users etc.
My idea was to go with 1 Web Api project and multiple Class librarys but I am not sure if this is the best way. I created an Auth WebAPI solution for now and want to create a UserManagement solution now. They should use two different databases and more solutions will be added. I had the idea to maybe create multiple Web API projects and use just 1 static swagger instance - would this work/be useful? What are your thoughts/ideas
2 replies
❔ .net Identity 401 => Roles/Claims available
Hey, I keep getting 401 with the following bearer in Swagger (authorized)
I have created a controller for the role "Admin" and a controller for the policy "user.read" but both return me 401. Anyone an idea what the problem might be?
I am using a custom policy "creator" that is creating a policy in the format "user.read" => user = ClaimType/read = ClaimValue
36 replies