File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed
src/Security/Authenticator Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change 2020use KnpU \OAuth2ClientBundle \Security \Helper \PreviousUrlHelper ;
2121use KnpU \OAuth2ClientBundle \Security \Helper \SaveAuthFailureMessage ;
2222use League \OAuth2 \Client \Provider \Exception \IdentityProviderException ;
23+ use League \OAuth2 \Client \Token \AccessToken ;
2324use Symfony \Component \Security \Http \Authenticator \AbstractAuthenticator ;
2425
2526abstract class OAuth2Authenticator extends AbstractAuthenticator
@@ -28,6 +29,9 @@ abstract class OAuth2Authenticator extends AbstractAuthenticator
2829 use PreviousUrlHelper;
2930 use SaveAuthFailureMessage;
3031
32+ /**
33+ * @return AccessToken
34+ */
3135 protected function fetchAccessToken (OAuth2ClientInterface $ client , array $ options = [])
3236 {
3337 try {
Original file line number Diff line number Diff line change 2020use KnpU \OAuth2ClientBundle \Security \Helper \PreviousUrlHelper ;
2121use KnpU \OAuth2ClientBundle \Security \Helper \SaveAuthFailureMessage ;
2222use League \OAuth2 \Client \Provider \Exception \IdentityProviderException ;
23+ use League \OAuth2 \Client \Token \AccessToken ;
2324use Symfony \Component \Security \Core \User \UserInterface ;
2425use Symfony \Component \Security \Guard \AbstractGuardAuthenticator ;
2526
@@ -29,6 +30,9 @@ abstract class SocialAuthenticator extends AbstractGuardAuthenticator
2930 use PreviousUrlHelper;
3031 use SaveAuthFailureMessage;
3132
33+ /**
34+ * @return AccessToken
35+ */
3236 protected function fetchAccessToken (OAuth2ClientInterface $ client , array $ options = [])
3337 {
3438 try {
You can’t perform that action at this time.
0 commit comments