on ‎2019 Apr 10 1:11 PM
Hi Experts,
For registered customers in OCC, first we generate the token based on the below URL and credentials but what i need is ,show the proper error msg for username/password respective attributes.
Note : I have given Wrong username and password
current Output :
{ "error": "invalid_grant", "error_description": "Bad credentials" }
But our requirement is to give proper error messages like username is invalid /Password is invalid instead.
Request clarification before answering.
Have a look at the OOTB class "CoreAuthenticationProvider". It has the logic to show error messages. By default it shows "Bad credentials" message.
May be, you would need to customize that based on your requirement.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.