@@ -27,10 +27,10 @@ Now, you don't really have an account on Lock'd In, but for the sake of this exa
27
27
$provider = new \League\OAuth2\Client\Provider\GenericProvider([
28
28
'clientId' => 'demoapp', // The client ID assigned to you by the provider
29
29
'clientSecret' => 'demopass', // The client password assigned to you by the provider
30
- 'redirectUri' => 'http ://example.com/your-redirect-url/',
31
- 'urlAuthorize' => 'http ://brentertainment .com/oauth2/lockdin/authorize',
32
- 'urlAccessToken' => 'http ://brentertainment .com/oauth2/lockdin/token',
33
- 'urlResourceOwnerDetails' => 'http ://brentertainment .com/oauth2/lockdin/resource'
30
+ 'redirectUri' => 'https ://example.com/your-redirect-url/',
31
+ 'urlAuthorize' => 'https ://example .com/oauth2/lockdin/authorize',
32
+ 'urlAccessToken' => 'https ://example .com/oauth2/lockdin/token',
33
+ 'urlResourceOwnerDetails' => 'https ://example .com/oauth2/lockdin/resource'
34
34
]);
35
35
36
36
// If we don't have an authorization code then get one
@@ -81,7 +81,7 @@ if (!isset($_GET['code'])) {
81
81
// to Psr\Http\Message\RequestInterface.
82
82
$request = $provider->getAuthenticatedRequest(
83
83
'GET',
84
- 'http ://brentertainment .com/oauth2/lockdin/resource',
84
+ 'https ://example .com/oauth2/lockdin/resource',
85
85
$accessToken
86
86
);
87
87
@@ -108,10 +108,10 @@ _This example uses [Brent Shaffer's](https://github.com/bshaffer) demo OAuth 2.0
108
108
$provider = new \League\OAuth2\Client\Provider\GenericProvider([
109
109
'clientId' => 'demoapp', // The client ID assigned to you by the provider
110
110
'clientSecret' => 'demopass', // The client password assigned to you by the provider
111
- 'redirectUri' => 'http ://example.com/your-redirect-url/',
112
- 'urlAuthorize' => 'http ://brentertainment .com/oauth2/lockdin/authorize',
113
- 'urlAccessToken' => 'http ://brentertainment .com/oauth2/lockdin/token',
114
- 'urlResourceOwnerDetails' => 'http ://brentertainment .com/oauth2/lockdin/resource'
111
+ 'redirectUri' => 'https ://example.com/your-redirect-url/',
112
+ 'urlAuthorize' => 'https ://example .com/oauth2/lockdin/authorize',
113
+ 'urlAccessToken' => 'https ://example .com/oauth2/lockdin/token',
114
+ 'urlResourceOwnerDetails' => 'https ://example .com/oauth2/lockdin/resource'
115
115
]);
116
116
117
117
$existingAccessToken = getAccessTokenFromYourDataStore();
0 commit comments