Resetting password access denied
Hello im trying to fix that a user can reset their password by hitting this endpoint /api/reset-password/password
currently im getting access denied but i dont want the users to be authed to use this endpoint.
Im gonna share few code if you guys can help me find the issue and i would really appericate it since ive been on this all day.
PasswordResetController
PasswordResetService
SecurityConfiguration
6 Replies
ā
This post has been reserved for your question.
Hey @Itsurran! Please useTIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here./close
or theClose Post
button above when your problem is solved. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.
š¤
Post marked as dormant
This post has been inactive for over 300 minutes, thus, it has been archived.
If your question was not answered yet, feel free to re-open this post or create a new one.
In case your post is not getting any attention, you can try to use /help ping
.
Warning: abusing this will result in moderative actions taken against you.
If you don't want to be "authed" and try to reset password while not "authed" then I think your Spring Security doesn't allow you to access the
/api/reset-password/password
endpoint and thus your access is denied. I guess you get 401-Unauthorized. In such a case permit access for that endpoint for all:
Iām getting 404 forbidden
403*
š¤
Post marked as dormant
This post has been inactive for over 300 minutes, thus, it has been archived.
If your question was not answered yet, feel free to re-open this post or create a new one.
In case your post is not getting any attention, you can try to use /help ping
.
Warning: abusing this will result in moderative actions taken against you.
dan1st
Warn Added (20/100)
Member
<@1156744288571506789>
Moderator
<@358291050957111296>
Reason
spamming in help channels of other people
Severity
LOW (20)
thunder_gaming
š¤
Post marked as dormant
This post has been inactive for over 300 minutes, thus, it has been archived.
If your question was not answered yet, feel free to re-open this post or create a new one.
In case your post is not getting any attention, you can try to use /help ping
.
Warning: abusing this will result in moderative actions taken against you.