OAuthSecurityHandler was always returning valid property as 'True' even when token generation return "error"
I've changed it to set valid to 'False' and message = 'token request return value' when 'access_token' is not present in token request return (keep the original if check)
Added two tests to demostrate the problem as well.
OAuthSecurityHandler was always returning valid property as 'True' even when token generation return "error"
I've changed it to set valid to 'False' and message = 'token request return value' when 'access_token' is not present in token request return (keep the original if check)
Added two tests to demostrate the problem as well.