@@ -27,10 +27,10 @@ Now, you don't really have an account on Lock'd In, but for the sake of this exa
2727$provider = new \League\OAuth2\Client\Provider\GenericProvider([
2828 'clientId' => 'demoapp', // The client ID assigned to you by the provider
2929 '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'
3434]);
3535
3636// If we don't have an authorization code then get one
@@ -81,7 +81,7 @@ if (!isset($_GET['code'])) {
8181 // to Psr\Http\Message\RequestInterface.
8282 $request = $provider->getAuthenticatedRequest(
8383 'GET',
84- 'http ://brentertainment .com/oauth2/lockdin/resource',
84+ 'https ://example .com/oauth2/lockdin/resource',
8585 $accessToken
8686 );
8787
@@ -108,10 +108,10 @@ _This example uses [Brent Shaffer's](https://github.com/bshaffer) demo OAuth 2.0
108108$provider = new \League\OAuth2\Client\Provider\GenericProvider([
109109 'clientId' => 'demoapp', // The client ID assigned to you by the provider
110110 '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'
115115]);
116116
117117$existingAccessToken = getAccessTokenFromYourDataStore();
0 commit comments