Skip to content

Commit

Permalink
[OAuth2] Feature: Improve messages for Exceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
ovr committed Jun 13, 2019
1 parent d573024 commit a4975af
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/OAuth2/Exception/InvalidState.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

class InvalidState extends \SocialConnect\Provider\Exception\AuthFailed
{
public function __construct($message = 'Invalid state')
public function __construct($message = 'State parameter inside Request is not similar to value from Session, possible CSRF attack')
{
parent::__construct($message);
}
Expand Down
2 changes: 1 addition & 1 deletion src/OAuth2/Exception/UnknownState.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

class UnknownState extends \SocialConnect\Provider\Exception\AuthFailed
{
public function __construct($message = 'Unknown state')
public function __construct($message = 'There is no state parameter inside redirect from OAuth provider')
{
parent::__construct($message);
}
Expand Down

0 comments on commit a4975af

Please sign in to comment.