Skip to content

Commit 0c46fcc

Browse files
authored
Merge pull request #745 from azmeuk/deprecations
Remove deprecated 'check_token_endpoint_auth_method' method
2 parents b84d1f1 + b7ac169 commit 0c46fcc

File tree

2 files changed

+0
-11
lines changed

2 files changed

+0
-11
lines changed

authlib/oauth2/rfc6749/models.py

-6
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
This module defines how to construct Client, AuthorizationCode and Token.
55
"""
66

7-
from authlib.deprecate import deprecate
8-
97

108
class ClientMixin:
119
"""Implementation of OAuth 2 Client described in `Section 2`_ with
@@ -110,10 +108,6 @@ def check_endpoint_auth_method(self, method, endpoint):
110108
"""
111109
raise NotImplementedError()
112110

113-
def check_token_endpoint_auth_method(self, method):
114-
deprecate("Please implement ``check_endpoint_auth_method`` instead.")
115-
return self.check_endpoint_auth_method(method, "token")
116-
117111
def check_response_type(self, response_type):
118112
"""Validate if the client can handle the given response_type. There
119113
are two response types defined by RFC6749: code and token. For

docs/django/2/authorization-server.rst

-5
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,6 @@ an example.
2424
Client
2525
------
2626

27-
.. versionchanged:: v1.0
28-
29-
``check_token_endpoint_auth_method`` is deprecated, developers should
30-
implement ``check_endpoint_auth_method`` instead.
31-
3227
A client is an application making protected resource requests on behalf of the
3328
resource owner and with its authorization. It contains at least three
3429
information:

0 commit comments

Comments
 (0)