made oauth throw AuthorizationException on GeneralSecurityExceptioon and IllegalArgumentException
Merge pull request #1361 from dralves/oauth-bug

made oauth throw AuthorizationException when required