mirror of
https://github.com/OAuthSwift/OAuthSwift.git
synced 2026-04-26 12:45:52 +03:00
[GH-ISSUE #467] URLSessionFactory delegate is assigned but never called #304
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#304
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 @ynechaev on GitHub (Jun 4, 2018).
Original GitHub issue: https://github.com/OAuthSwift/OAuthSwift/issues/467
Description:
URLSessionFactory delegate is never called, however the delegate is assigned properly and may be observed in runtime. This makes it impossible to debug connections with Charles proxy via self signed SSL.
code:
po output:
delegate handler:
OAuth Provider? (Twitter, Github, ..):
Any
OAuth Version:
OS:
Installation method:
Library version:
Xcode version:
9.3 (Swift 4.1)
9.0 (Swift 4.0)
9.0 (Swift 3.2)
8.x (Swift 3.x)
8.0 (Swift 2.3)
7.3.1
other: (Please fill in the version you are using.)
objective c
@phimage commented on GitHub (Jun 25, 2018):
delegate is used in any URLSession
but URLSessionFactory is a struct so when you do
you create a new instance of
URLSessionFactoryYou do not edit the one used
The correct way to do it is to edit the
OAuthSwiftClientattributesessionFactory, because each client/connection to a provider could have is own session managementso you can do