Skip to content

Commit 663a45d

Browse files
authored
Merge pull request #768 from thephpleague/fix/docs-https-mixed
Stop using same-scheme links
2 parents e6d0273 + 4c2a7ce commit 663a45d

File tree

5 files changed

+18
-17
lines changed

5 files changed

+18
-17
lines changed

docs/_config.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
repository: thephpleague/oauth2-client

docs/_layouts/default.html

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,20 +18,20 @@
1818
{% if site.data.images.favicon %}
1919
<link rel="icon" type="image/x-icon" href="{{ site.data.images.favicon }}" />
2020
{% else %}
21-
<link rel="icon" type="image/x-icon" href="//theme.thephpleague.com/img/favicon.ico" />
21+
<link rel="icon" type="image/x-icon" href="https://theme.thephpleague.com/img/favicon.ico" />
2222
{% endif %}
2323
{% if site.data.images.apple_touch %}
2424
<link rel="apple-touch-icon-precomposed" href="{{ site.data.images.apple_touch }}">
2525
{% else %}
26-
<link rel="apple-touch-icon-precomposed" href="//theme.thephpleague.com/img/apple-touch-icon-precomposed.png">
26+
<link rel="apple-touch-icon-precomposed" href="https://theme.thephpleague.com/img/apple-touch-icon-precomposed.png">
2727
{% endif %}
28-
<link rel="stylesheet" href="//theme.thephpleague.com/css/all.css?2">
28+
<link rel="stylesheet" href="https://theme.thephpleague.com/css/all.css">
2929
</head>
3030
<body>
3131

3232
<section class="all_packages">
3333
<a href="https://thephpleague.com/">
34-
<img src="//theme.thephpleague.com/img/loep_logo.png" width="195" height="200" alt="The League of Extraordinary Packages">
34+
<img src="https://theme.thephpleague.com/img/loep_logo.png" width="195" height="200" alt="The League of Extraordinary Packages">
3535
</a>
3636
<h2>Our Packages:</h2>
3737
<ul>
@@ -83,8 +83,8 @@ <h2>{{ section[0] }}</h2>
8383
<span>Site design by <a href="https://reinink.ca">Jonathan Reinink</a>.</span>
8484
</footer>
8585

86-
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
87-
<script src="//theme.thephpleague.com/js/scripts.js"></script>
86+
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
87+
<script src="https://theme.thephpleague.com/js/scripts.js"></script>
8888

8989
{% if site.data.project.google_analytics_tracking_id %}
9090
<script>

docs/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ League/oauth2-client
88
======================
99

1010
[![Gitter Chat](https://img.shields.io/badge/gitter-join_chat-brightgreen.svg?style=flat-square)](https://gitter.im/thephpleague/oauth2-client)
11-
[![Source Code](http://img.shields.io/badge/source-thephpleague/oauth2--client-blue.svg?style=flat-square)](https://github.com/thephpleague/oauth2-client)
11+
[![Source Code](https://img.shields.io/badge/source-thephpleague/oauth2--client-blue.svg?style=flat-square)](https://github.com/thephpleague/oauth2-client)
1212
[![Latest Version](https://img.shields.io/github/release/thephpleague/oauth2-client.svg?style=flat-square)](https://github.com/thephpleague/oauth2-client/releases)
1313
[![Software License](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square)](https://github.com/thephpleague/oauth2-client/blob/master/LICENSE)
1414
[![Build Status](https://img.shields.io/travis/thephpleague/oauth2-client/master.svg?style=flat-square)](https://travis-ci.org/thephpleague/oauth2-client)

docs/providers/implementing.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ Make it available
7777
------------------
7878

7979
If you find a package for a certain provider useful, chances are someone else will too! Make your package available by
80-
putting it on [packagist](http://packagist.org) and [GitHub](https://github.com)! After it's available, submit a pull request
80+
putting it on [packagist](https://packagist.org) and [GitHub](https://github.com)! After it's available, submit a pull request
8181
to the [oauth2-client](https://github.com/thephpleague/oauth2-client) repository adding your provider to the provider list.
8282

8383
Make your gateway official

docs/usage.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)