• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

oauthlib / oauthlib / 17025260387

17 Aug 2025 08:01PM UTC coverage: 92.846% (-0.06%) from 92.909%
17025260387

push

github

web-flow
Merge pull request #918 from cclauss/pre-commit

Add pre-commit to run linters, formatters, etc. on code changes

979 of 1089 branches covered (89.9%)

Branch coverage included in aggregate %.

3109 of 3314 relevant lines covered (93.81%)

5.61 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

75.0
/oauthlib/oauth2/rfc8628/request_validator.py
1
from oauthlib.oauth2 import RequestValidator as OAuth2RequestValidator
6✔
2

3

4
class RequestValidator(OAuth2RequestValidator):
6✔
5
    def client_authentication_required(self, request, *args, **kwargs):
6✔
6
        """Determine if client authentication is required for current request.
7

8
        According to the rfc8628, client authentication is required in the following cases:
9
            - Device Authorization Request follows the, the client authentication requirements
10
              of Section 3.2.1 of [RFC6749] apply to requests on this endpoint, which means that
11
              confidential clients (those that have established client credentials) authenticate
12
              in the same manner as when making requests to the token endpoint, and
13
              public clients provide the "client_id" parameter to identify themselves,
14
              see `Section 3.1`_.
15

16
        :param request: OAuthlib request.
17
        :type request: oauthlib.common.Request
18
        :rtype: True or False
19

20
        Method is used by:
21
            - Device Authorization Request
22

23
        .. _`Section 3.1`: https://www.rfc-editor.org/rfc/rfc8628#section-3.1
24
        """
25
        return True
×
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc