123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102 |
- <?php
- namespace SocialiteProviders\Manager\Test\Stubs;
- use League\OAuth1\Client\Credentials\TokenCredentials;
- use SocialiteProviders\Manager\OAuth1\Server;
- use SocialiteProviders\Manager\OAuth1\User;
- class OAuth1ServerStub extends Server
- {
- /**
- * Get the URL for retrieving temporary credentials.
- *
- * @return string
- */
- public function urlTemporaryCredentials()
- {
- return 'test';
- }
- /**
- * Get the URL for redirecting the resource owner to authorize the client.
- *
- * @return string
- */
- public function urlAuthorization()
- {
- return 'test';
- }
- /**
- * Get the URL retrieving token credentials.
- *
- * @return string
- */
- public function urlTokenCredentials()
- {
- return 'test';
- }
- /**
- * Get the URL for retrieving user details.
- *
- * @return string
- */
- public function urlUserDetails()
- {
- return 'test';
- }
- /**
- * Take the decoded data from the user details URL and convert
- * it to a User object.
- *
- * @param mixed $data
- * @param TokenCredentials $tokenCredentials
- * @return \SocialiteProviders\Manager\OAuth1\User
- */
- public function userDetails($data, TokenCredentials $tokenCredentials)
- {
- return new User;
- }
- /**
- * Take the decoded data from the user details URL and extract
- * the user's UID.
- *
- * @param mixed $data
- * @param TokenCredentials $tokenCredentials
- * @return string|int
- */
- public function userUid($data, TokenCredentials $tokenCredentials)
- {
- return 1;
- }
- /**
- * Take the decoded data from the user details URL and extract
- * the user's email.
- *
- * @param mixed $data
- * @param TokenCredentials $tokenCredentials
- * @return string
- */
- public function userEmail($data, TokenCredentials $tokenCredentials)
- {
- return 'test';
- }
- /**
- * Take the decoded data from the user details URL and extract
- * the user's screen name.
- *
- * @param mixed $data
- * @param TokenCredentials $tokenCredentials
- * @return string
- */
- public function userScreenName($data, TokenCredentials $tokenCredentials)
- {
- return 'test';
- }
- }
|