Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Added
3.12
.requests_auth.SupportMultiAuth
, allowing multiple authentication support for everyrequests
authentication class that exists.requests_auth.TokenMemoryCache
, allowing to create custom Oauth2 token cache based on this default implementation.success_html
) and failure (failure_html
) display via the newOAuth2.display
shared setting. Refer to documentation for more details.redirect_uri_domain
parameter on Authorization code (with and without PKCE) and Implicit flows, you can now provide the FQDN to use in theredirect_uri
whenlocalhost
(the default) is not allowed.requests_auth.WakaTimeAuthorizationCode
handling access to the WakaTime API.Changed
requests_auth.testing
, only direct access viarequests_auth.
was considered publicly exposed. This is now explicit, as inner packages are now using private prefix (_
).If you were relying on some classes or functions that are now internal, feel free to open an issue.
requests_auth.JsonTokenFileCache
andrequests_auth.TokenMemoryCache
get_token
method does not handle kwargs anymore, theon_missing_token
callable does not expect any arguments anymore.requests_auth.JsonTokenFileCache
does not exposetokens_path
orlast_save_time
attributes anymore and is also allowingpathlib.Path
instances as cache location.requests_auth.TokenMemoryCache
does not exposeforbid_concurrent_cache_access
orforbid_concurrent_missing_token_function_call
attributes anymore.requests_auth.OAuth2.display
.The failure page will be displayed for 10 seconds by default instead of 5 seconds previously.
As a result the following classes no longer expose
success_display_time
andfailure_display_time
parameters.requests_auth.OAuth2AuthorizationCode
.requests_auth.OktaAuthorizationCode
.requests_auth.WakaTimeAuthorizationCode
.requests_auth.OAuth2AuthorizationCodePKCE
.requests_auth.OktaAuthorizationCodePKCE
.requests_auth.OAuth2Implicit
.requests_auth.AzureActiveDirectoryImplicit
.requests_auth.AzureActiveDirectoryImplicitIdToken
.requests_auth.OktaImplicit
.requests_auth.OktaImplicitIdToken
.requests_auth.testing
was modified to accommodate this change:tab.assert_success
expected_message
parameter was removed.tab.assert_failure
expected_message
parameter should not be prefixed withUnable to properly perform authentication:
anymore and\n
in the message should be replaced with<br>
.requests_auth
are now inheriting fromrequests_auth.RequestsAuthException
, itself inheriting fromrequests.RequestException
, instead ofException
.Fixed
utcnow
andutcfromtimestamp
.requests_auth.OktaClientCredentials
scope
parameter is now mandatory and does not default toopenid
anymore.requests_auth.OktaClientCredentials
will now display a more user-friendly error message in case Okta instance is not provided.DEBUG
logs will not display tokens anymore.text/html; charset=utf-8
content-type in token responses.Removed
3.7
.requests_auth.Auths
class has been removed.