mirror of
https://github.com/OAuthSwift/OAuthSwift.git
synced 2026-04-26 20:55:57 +03:00
[GH-ISSUE #667] Cannot change URLRequest's timeoutInterval #434
Labels
No labels
bug
cocoapod
duplicate
enhancement
feature-request
help wanted
help wanted
invalid
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/OAuthSwift#434
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @MikeSpelling on GitHub (Jul 5, 2021).
Original GitHub issue: https://github.com/OAuthSwift/OAuthSwift/issues/667
Description:
Using OAuth2Swift startAuthorizedRequest there is no way to override the requestTimeout. Although we can override the sessions timeout via:
This will be overridden by the actual URLRequest's timeoutInterval used as, from Apple, https://developer.apple.com/documentation/foundation/urlsessionconfiguration:
In this case the
OAuthSwiftHTTPRequestinstantiates it'sConfigobject which has a default timeoutInterval set to 60.Changing the URLSession's configuration's timeoutIntervalForRequest does not seem to be able to override this.
OAuth Provider? (Twitter, Github, ..):
Custom - using our own Identity Server
OAuth Version:
OS (Please fill the version) :
Installation method:
Library version:
Xcode version:
@MikeSpelling commented on GitHub (Aug 12, 2021):
Any update on this? I couldn't find a solution so I've created a PR at OAuthSwift/pull/672 which solves it for me...