Skip to content

Commit f8c9f36

Browse files
docs: Update RFC URLs to modern location (#1315)
1 parent adcb276 commit f8c9f36

13 files changed

+16
-16
lines changed

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ If you are facing one or more of the following:
3333
Django OAuth Toolkit can help you providing out of the box all the endpoints, data and logic needed to add OAuth2
3434
capabilities to your Django projects. Django OAuth Toolkit makes extensive use of the excellent
3535
`OAuthLib <https://github.com/idan/oauthlib>`_, so that everything is
36-
`rfc-compliant <http://tools.ietf.org/html/rfc6749>`_.
36+
`rfc-compliant <https://rfc-editor.org/rfc/rfc6749.html>`_.
3737

3838
Reporting security issues
3939
-------------------------

docs/getting_started.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,7 @@ Next step is :doc:`first tutorial <tutorial/tutorial_01>`.
416416
.. _Whitson Gordon: https://en.wikipedia.org/wiki/OAuth#cite_note-1
417417
.. _User: https://docs.djangoproject.com/en/3.0/ref/contrib/auth/#django.contrib.auth.models.User
418418
.. _Django documentation: https://docs.djangoproject.com/en/3.0/topics/auth/customizing/#using-a-custom-user-model-when-starting-a-project
419-
.. _RFC6749: https://tools.ietf.org/html/rfc6749#section-1.3
419+
.. _RFC6749: https://rfc-editor.org/rfc/rfc6749.html#section-1.3
420420
.. _Grant Types: https://oauth.net/2/grant-types/
421421
.. _URL: http://127.0.0.1:8000/o/authorize/?response_type=code&client_id=vW1RcAl7Mb0d5gyHNQIAcH110lWoOW2BmWJIero8&redirect_uri=http://127.0.0.1:8000/noexist/callback
422422

docs/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Welcome to Django OAuth Toolkit Documentation
99
Django OAuth Toolkit can help you by providing, out of the box, all the endpoints, data, and logic needed to add OAuth2
1010
capabilities to your Django projects. Django OAuth Toolkit makes extensive use of the excellent
1111
`OAuthLib <https://github.com/idan/oauthlib>`_, so that everything is
12-
`rfc-compliant <http://tools.ietf.org/html/rfc6749>`_.
12+
`rfc-compliant <https://rfc-editor.org/rfc/rfc6749.html>`_.
1313

1414
See our :doc:`Changelog <changelog>` for information on updates.
1515

docs/resource_server.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Separate Resource Server
22
========================
33
Django OAuth Toolkit allows to separate the :term:`Authorization Server` and the :term:`Resource Server`.
4-
Based on the `RFC 7662 <https://tools.ietf.org/html/rfc7662>`_ Django OAuth Toolkit provides
4+
Based on the `RFC 7662 <https://rfc-editor.org/rfc/rfc7662.html>`_ Django OAuth Toolkit provides
55
a rfc-compliant introspection endpoint.
66
As well the Django OAuth Toolkit allows to verify access tokens by the use of an introspection endpoint.
77

docs/rfc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
from docutils import nodes
55

66

7-
base_url = "http://tools.ietf.org/html/rfc6749"
7+
base_url = "https://rfc-editor.org/rfc/rfc6749.html"
88

99

1010
def rfclink(name, rawtext, text, lineno, inliner, options={}, content=[]):

docs/tutorial/tutorial_04.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Revoking a Token
99
----------------
1010
Be sure that you've granted a valid token. If you've hooked in `oauth-toolkit` into your `urls.py` as specified in :doc:`part 1 <tutorial_01>`, you'll have a URL at `/o/revoke_token`. By submitting the appropriate request to that URL, you can revoke a user's :term:`Access Token`.
1111

12-
`Oauthlib <https://github.com/idan/oauthlib>`_ is compliant with https://tools.ietf.org/html/rfc7009, so as specified, the revocation request requires:
12+
`Oauthlib <https://github.com/idan/oauthlib>`_ is compliant with https://rfc-editor.org/rfc/rfc7009.html, so as specified, the revocation request requires:
1313

1414
- token: REQUIRED, this is the :term:`Access Token` you want to revoke
1515
- token_type_hint: OPTIONAL, designating either 'access_token' or 'refresh_token'.

oauth2_provider/generators.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class ClientIdGenerator(BaseHashGenerator):
1717
def hash(self):
1818
"""
1919
Generate a client_id for Basic Authentication scheme without colon char
20-
as in http://tools.ietf.org/html/rfc2617#section-2
20+
as in https://rfc-editor.org/rfc/rfc2617.html#section-2
2121
"""
2222
return oauthlib_generate_client_id(length=40, chars=UNICODE_ASCII_CHARACTER_SET)
2323

oauth2_provider/oauth2_validators.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -536,7 +536,7 @@ def save_bearer_token(self, token, request, *args, **kwargs):
536536
Save access and refresh token, If refresh token is issued, remove or
537537
reuse old refresh token as in rfc:`6`
538538
539-
@see: https://tools.ietf.org/html/draft-ietf-oauth-v2-31#page-43
539+
@see: https://rfc-editor.org/rfc/rfc6749.html#section-6
540540
"""
541541

542542
if "scope" not in token:

oauth2_provider/views/introspect.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
class IntrospectTokenView(ClientProtectedScopedResourceView):
1414
"""
1515
Implements an endpoint for token introspection based
16-
on RFC 7662 https://tools.ietf.org/html/rfc7662
16+
on RFC 7662 https://rfc-editor.org/rfc/rfc7662.html
1717
1818
To access this view the request must pass a OAuth2 Bearer Token
1919
which is allowed to access the scope `introspection`.

tests/test_authorization_code.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -483,7 +483,7 @@ def test_code_post_auth_redirection_uri_with_querystring(self):
483483
"""
484484
Tests that a redirection uri with query string is allowed
485485
and query string is retained on redirection.
486-
See http://tools.ietf.org/html/rfc6749#section-3.1.2
486+
See https://rfc-editor.org/rfc/rfc6749.html#section-3.1.2
487487
"""
488488
self.client.login(username="test_user", password="123456")
489489

0 commit comments

Comments
 (0)