mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-07 05:31:15 -07:00
Bump requests-oauthlib from 1.3.0 to 1.3.1 (#1636)
* Bump requests-oauthlib from 1.3.0 to 1.3.1 Bumps [requests-oauthlib](https://github.com/requests/requests-oauthlib) from 1.3.0 to 1.3.1. - [Release notes](https://github.com/requests/requests-oauthlib/releases) - [Changelog](https://github.com/requests/requests-oauthlib/blob/master/HISTORY.rst) - [Commits](https://github.com/requests/requests-oauthlib/compare/v1.3.0...v1.3.1) --- updated-dependencies: - dependency-name: requests-oauthlib dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> * Update requests-oauthlib==1.3.1 Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: JonnyWong16 <9099342+JonnyWong16@users.noreply.github.com> [skip ci]
This commit is contained in:
parent
5523d4ba88
commit
61960aa744
26 changed files with 464 additions and 77 deletions
|
@ -649,3 +649,28 @@ class RequestValidator:
|
|||
|
||||
"""
|
||||
raise NotImplementedError('Subclasses must implement this method.')
|
||||
|
||||
def is_origin_allowed(self, client_id, origin, request, *args, **kwargs):
|
||||
"""Indicate if the given origin is allowed to access the token endpoint
|
||||
via Cross-Origin Resource Sharing (CORS). CORS is used by browser-based
|
||||
clients, such as Single-Page Applications, to perform the Authorization
|
||||
Code Grant.
|
||||
|
||||
(Note: If performing Authorization Code Grant via a public client such
|
||||
as a browser, you should use PKCE as well.)
|
||||
|
||||
If this method returns true, the appropriate CORS headers will be added
|
||||
to the response. By default this method always returns False, meaning
|
||||
CORS is disabled.
|
||||
|
||||
:param client_id: Unicode client identifier.
|
||||
:param redirect_uri: Unicode origin.
|
||||
:param request: OAuthlib request.
|
||||
:type request: oauthlib.common.Request
|
||||
:rtype: bool
|
||||
|
||||
Method is used by:
|
||||
- Authorization Code Grant
|
||||
|
||||
"""
|
||||
return False
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue