function insTokenProvider()
    {
        if ($this->_tokenProvider)
            return $this->_tokenProvider;


        /** @var IdentityOAuthToken|iIdentityAccTokenProvider $identity */
        $identity = $this->withIdentity();
        $tokenProvider = new TokenProviderSolid(
            $identity->getAccessToken()
        );

        return $tokenProvider;
    }
function insTokenProvider()
    {
        if ($this->_tokenProvider)
            return $this->_tokenProvider;


        /** @var IdentityOAuthToken|iIdentityAccTokenProvider $identity */
        $identity = $this->withIdentity();
        $tokenProvider = new TokenProviderSolid(
            $identity->getAccessToken()
        );

        return $tokenProvider;
    }
function insTokenProvider ( ) { if ( $ this -> _tokenProvider ) return $ this -> _tokenProvider ; /** @var IdentityOAuthToken|iIdentityAccTokenProvider $identity */ $ identity = $ this -> withIdentity ( ) ; $ tokenProvider = new TokenProviderSolid ( $ identity -> getAccessToken ( ) ) ; return $ tokenProvider ; }
Token Provider Help Call API`s Behalf Of User with given token


[code]
$federation = clone \Module\OAuth2Client\Services::OAuthFederate();
$federation->setTokenProvider($tokenProvider);

$info = $federation->getMyAccountInfo();
[/code]


@return TokenProviderSolid
Token Provider Help Call API s Behalf Of User with given token