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

Catching 2 other common authentication errors #80

Merged
merged 2 commits into from
Feb 12, 2018

Conversation

weaverryan
Copy link
Member

Fixes #78

The entire point of fetchAccessToken() is to help catch as many "normal" errors as possible and turn them into proper "AuthenticationException" situations with decent messages.

Copy link
Member

@bocharsky-bw bocharsky-bw left a comment

Choose a reason for hiding this comment

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

Looks good, I left 1 comment only

public function getMessageData()
{
return [
'error' => $this->getPrevious()->getMessage(),
Copy link
Member

Choose a reason for hiding this comment

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

I'm not sure, but don't we need to wrap the string with %% here like:

return [
    '%error%' => $this->getPrevious()->getMessage(),
]

?

Copy link
Member Author

Choose a reason for hiding this comment

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

Oh man, you're TOTALLY right :)

@weaverryan weaverryan merged commit f68a028 into master Feb 12, 2018
@weaverryan weaverryan deleted the catch-more-auth-errors branch February 12, 2018 19:02
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.

None yet

2 participants