Johnny
Explore posts from serversWWasp-lang
•Created by Johnny on 4/2/2024 in #🙋questions
Password Reset token invalidation
Hey, could it be that a password token can be reused once it is used? Tried it 3 times with the same token and it changed every time the password
22 replies
WWasp-lang
•Created by Johnny on 4/2/2024 in #🙋questions
Mails not being sent (Mailgun and Sendgrid tested => both haven't even got an API request)
Hey, I have setup my main.wasp with my email I have registered and set the APIKey - for password reset I am getting 200 as return but no mail is ever being sent
26 replies
JWT 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