Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Signature failures #6

Merged
merged 2 commits into from
Mar 12, 2013
Merged

Signature failures #6

merged 2 commits into from
Mar 12, 2013

Conversation

xsl
Copy link
Contributor

@xsl xsl commented Mar 12, 2013

Exceptions thrown in Verifier.validateSignature should be treated as bad signatures.

Base64Util.equals(UrlDecoder(request.signature).trim,
signer.getBytes(request.normalizedRequest, tokenSecret, consumerSecret))
} catch {
case e: Exception => return false
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

log enough at debug level so that we could debug this in production if necessary

@kevinoliver
Copy link
Contributor

as discussed with Steven, Joauth doesn't do logging today. We'll add that separately and handle this there.

kevinoliver added a commit that referenced this pull request Mar 12, 2013
Handle exceptions in signature failures
@kevinoliver kevinoliver merged commit a9b20f4 into master Mar 12, 2013
@caniszczyk caniszczyk deleted the signature_failures branch February 7, 2014 01:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants