0
votes

I have an app that conects to WSO2 to generate its access token and refresh token, but when I use special characters in the password, the server answers with an invalid grant error

Im testing it with postman with this url:

https://localhost:9443/oauth2/token?grant_type=password&username=XXXXX&password=123Abc$#

Basic auth with OAuth client key and secret and Content-Type: application/x-www-form-urlencoded

The answer is:

{
  "error_description": "Authentication failed for [email protected]",
  "error": "invalid_grant"
}

Is there any way to scape these special characters? because WSO2 allows me to change the password to use special characters both from the app directly and using its SOAP service.

Thanks

1

1 Answers