Skip to content
This repository was archived by the owner on Nov 19, 2024. It is now read-only.
This repository was archived by the owner on Nov 19, 2024. It is now read-only.

Forbidden if need changes password with token valueΒ #274

@salamisodikiolawale

Description

@salamisodikiolawale

πŸ› Describe the bug

403 Forbiden if i send request to change password with token value.

⚠️ Current behavior

403 Forbiden if i send request to change password with token value.

βœ… Expected behavior

This operartion must be to return new token or confirm that password changed.

πŸ’£ Steps to reproduce

 Step 1 : create user ***http://localhost:8080/users***
             
           {
	"name": "name",
  "email": "name@gmail.com",
  "password": "name1234"
}
             
 Step 2: get token during authentication ***http://localhost:8080/auth/login***
   
{
  "email": "name@gmail.com",
  "password": "name1234"
}
This step return a token value

Step 3 : Change password ***http://localhost:8080/users/password***

{
  "email": "name@gmail.com",
	"token":"eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiI1MmU4NjdiYi0zZDdhLTQ0YmUtYWVlMC0yODk2NTljYmI1ZWMiLCJleHAiOjE2Njc3NDM2OTJ9.ughwk1htJYeiETWp7wocgMtzKwd6JxBWMg-83WFZCW9aRLi6zo9bZkDU6mqxsxi6dNVKc9W0_UNZtZTWZ6G2xA",
	"newPassword": "namei1234444"	
}

Error : 

{
	"timestamp": "2022-10-27T14:33:52.404+0000",
	"status": 403,
	"error": "Forbidden",
	"message": "Access Denied",
	"path": "/users/password"
}


Step 3 :

πŸ“· Screenshots

πŸ“± Tech info

  • Device: Docker
  • OS: Ubuntu
  • Library/App version: Java8 , gradle 2.4, intellij

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions