Skip to content

Commit 3e58284

Browse files
authored
Merge branch 'master' into isort-integration
2 parents 2221098 + 406653f commit 3e58284

File tree

4 files changed

+24
-6
lines changed

4 files changed

+24
-6
lines changed

.github/FUNDING.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# These are supported funding model platforms
22

3-
github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
3+
github: [JonathanHuot]
44
patreon: # Replace with a single Patreon username
55
open_collective: # Replace with a single Open Collective username
66
ko_fi: # Replace with a single Ko-fi username

docs/contributing.rst

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ submit a breaking change, confirm that other projects builds are not affected.
188188
$ make
189189

190190

191-
If you add code you need to add tests!
191+
If you add code, add tests!
192192
--------------------------------------
193193

194194
We've learned the hard way that code without tests is undependable. If your pull
@@ -303,7 +303,7 @@ First we pull the code into a local branch::
303303

304304
Then we run the tests::
305305

306-
pytest
306+
tox
307307

308308
We finish with a non-fastforward merge (to preserve the branch history) and push
309309
to GitHub::
@@ -312,6 +312,19 @@ to GitHub::
312312
git merge --no-ff <branch-name>
313313
git push upstream master
314314

315+
Sponsoring
316+
==========
317+
318+
The OAuthlib project is open to sponsoring.
319+
320+
As a sponsor, you can participate by clicking on the "Sponsor" button in
321+
the https://github.com/oauthlib/oauthlib homepage.
322+
323+
As a contributor, you can adhere to the sponsoring program. Feel free
324+
to open a PR by adding your name into the ``.github/FUNDING.yml``
325+
file.
326+
327+
315328
.. _installation: install.html
316329
.. _GitHub project: https://github.com/oauthlib/oauthlib
317330
.. _issue tracker: https://github.com/oauthlib/oauthlib/issues

examples/skeleton_oauth2_web_application_server.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,13 +54,18 @@ def save_authorization_code(self, client_id, code, request, *args, **kwargs):
5454

5555
# Token request
5656

57+
def client_authentication_required(self, request, *args, **kwargs):
58+
# Check if the client provided authentication information that needs to
59+
# be validated, e.g. HTTP Basic auth
60+
pass
61+
5762
def authenticate_client(self, request, *args, **kwargs):
5863
# Whichever authentication method suits you, HTTP Basic might work
5964
pass
6065

6166
def authenticate_client_id(self, client_id, request, *args, **kwargs):
62-
# Don't allow public (non-authenticated) clients
63-
return False
67+
# The client_id must match an existing public (non-confidential) client
68+
pass
6469

6570
def validate_code(self, client_id, code, client, request, *args, **kwargs):
6671
# Validate the code belongs to the client. Add associated scopes

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ commands=
99

1010

1111
# tox -e docs to mimick readthedocs build.
12-
# as of today, RTD is using python2.7 and doesn't run "setup.py install"
12+
# as of today, RTD is using python3.6 and doesn't run "setup.py install"
1313
[testenv:docs]
1414
basepython=python3.6
1515
skipsdist=True

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy