I'm designing authorization functionality in my app and I'd like to know whether it is safe to provide details on why an access token (JWT) may have been rejected.
Possible scenarios are:
- JWT has expired
- Audience does not match
- Lack of necessary scopes
Should I specify the error details in the 403 response? I feel like it may give an attacker additional details about a token that he can leverage in order to break the system.
Or should it be as generic as possible, like "Authorization has failed." and that's it?