salt
salt copied to clipboard
Differentiate between permissions and authentication failure
If the user has successfully authenticated and the token is still valid, raise an authorization exception not an authentication exception. The authorization exception is a subclass of the authentication exception so no salt code has to change but the salt-api can detect the difference.
After a (very) little investigation I'm fuzzy on how to tackle this one since we're not raising exceptions at this point in the code.
Any specific reason why an exception should not be raised as opposed to returning ''?
ZD-1488