Méthode | Description | |
---|---|---|
__construct ( Symfony\Component\Security\Core\User\UserProviderInterface $userProvider, Elcodi\Component\Core\Services\ObjectDirector $authorizationDirector, Elcodi\Component\Core\Services\ObjectDirector $customerDirector, Doctrine\Common\Persistence\ObjectManager $authorizationObjectManager, Elcodi\Component\User\EventDispatcher\Interfaces\UserEventDispatcherInterface $userEventDispatcher ) | Constructor | |
loadUserByOAuthUserResponse ( HWI\Bundle\OAuthBundle\OAuth\Response\UserResponseInterface $response ) : Symfony\Component\Security\Core\User\UserInterface | Loads the user by a given UserResponseInterface object. |
Méthode | Description | |
---|---|---|
createAuthorization ( HWI\Bundle\OAuthBundle\OAuth\Response\UserResponseInterface $response, Symfony\Component\Security\Core\User\UserInterface $user ) : |
Creates an authorization for a given user | |
createUser ( HWI\Bundle\OAuthBundle\OAuth\Response\UserResponseInterface $response ) : Symfony\Component\Security\Core\User\UserInterface | Create a new user from a response | |
findAuthorization ( HWI\Bundle\OAuthBundle\OAuth\Response\UserResponseInterface $response ) : |
Checks if a valid authorization exists for a given user | |
findOrCreateUser ( HWI\Bundle\OAuthBundle\OAuth\Response\UserResponseInterface $response ) : Symfony\Component\Security\Core\User\UserInterface | Find or creates a user related to a given response of the resource owner | |
findUser ( HWI\Bundle\OAuthBundle\OAuth\Response\UserResponseInterface $response ) : Symfony\Component\Security\Core\User\UserInterface | null | Find the user related to the response of the resource owner | |
getExpirationDate ( integer $secondsToExpiration ) : DateTime | Return expiration date given time to expiration | |
save ( |
Persist an authorization | |
updateAuthorization ( |
Updates an existing authorization with data from the resource owner |
public __construct ( Symfony\Component\Security\Core\User\UserProviderInterface $userProvider, Elcodi\Component\Core\Services\ObjectDirector $authorizationDirector, Elcodi\Component\Core\Services\ObjectDirector $customerDirector, Doctrine\Common\Persistence\ObjectManager $authorizationObjectManager, Elcodi\Component\User\EventDispatcher\Interfaces\UserEventDispatcherInterface $userEventDispatcher ) | ||
$userProvider | Symfony\Component\Security\Core\User\UserProviderInterface | Where to search for valid users |
$authorizationDirector | Elcodi\Component\Core\Services\ObjectDirector | Authorization Director |
$customerDirector | Elcodi\Component\Core\Services\ObjectDirector | Customer Director |
$authorizationObjectManager | Doctrine\Common\Persistence\ObjectManager | Customer Object Manager |
$userEventDispatcher | Elcodi\Component\User\EventDispatcher\Interfaces\UserEventDispatcherInterface | User event dispatcher |
protected createAuthorization ( HWI\Bundle\OAuthBundle\OAuth\Response\UserResponseInterface $response, Symfony\Component\Security\Core\User\UserInterface $user ) : |
||
$response | HWI\Bundle\OAuthBundle\OAuth\Response\UserResponseInterface | Response of the resource owner |
$user | Symfony\Component\Security\Core\User\UserInterface | User |
Résultat |
protected createUser ( HWI\Bundle\OAuthBundle\OAuth\Response\UserResponseInterface $response ) : Symfony\Component\Security\Core\User\UserInterface | ||
$response | HWI\Bundle\OAuthBundle\OAuth\Response\UserResponseInterface | |
Résultat | Symfony\Component\Security\Core\User\UserInterface |
protected findAuthorization ( HWI\Bundle\OAuthBundle\OAuth\Response\UserResponseInterface $response ) : |
||
$response | HWI\Bundle\OAuthBundle\OAuth\Response\UserResponseInterface | Response of the ResourceOwner |
Résultat |
protected findOrCreateUser ( HWI\Bundle\OAuthBundle\OAuth\Response\UserResponseInterface $response ) : Symfony\Component\Security\Core\User\UserInterface | ||
$response | HWI\Bundle\OAuthBundle\OAuth\Response\UserResponseInterface | Response of the resource owner |
Résultat | Symfony\Component\Security\Core\User\UserInterface |
protected getExpirationDate ( integer $secondsToExpiration ) : DateTime | ||
$secondsToExpiration | integer | |
Résultat | DateTime |
public loadUserByOAuthUserResponse ( HWI\Bundle\OAuthBundle\OAuth\Response\UserResponseInterface $response ) : Symfony\Component\Security\Core\User\UserInterface | ||
$response | HWI\Bundle\OAuthBundle\OAuth\Response\UserResponseInterface | |
Résultat | Symfony\Component\Security\Core\User\UserInterface |
protected save ( |
||
$authorization | Authorization to persist |
protected updateAuthorization ( |
||
$authorization | Authorization | |
$response | HWI\Bundle\OAuthBundle\OAuth\Response\UserResponseInterface | Response of the resource owner |
Résultat |