[GH-ISSUE #102] Example of custom OAuthSwiftURLHandlerType #66

Closed
opened 2026-03-03 16:45:21 +03:00 by kerem · 1 comment
Owner

Originally created by @acoleman-apc on GitHub (Sep 7, 2015).
Original GitHub issue: https://github.com/OAuthSwift/OAuthSwift/issues/102

I would like to handle an oAuth request strictly in code - not in safari or a web view. Is there an example of this type of custom OAuthSwiftURLHandlerType that I might be able to see?

Or is there perhaps a OAuthSwiftOpenURLInternally class that I have missed?

Thanks

Originally created by @acoleman-apc on GitHub (Sep 7, 2015). Original GitHub issue: https://github.com/OAuthSwift/OAuthSwift/issues/102 I would like to handle an oAuth request strictly in code - not in safari or a web view. Is there an example of this type of custom OAuthSwiftURLHandlerType that I might be able to see? Or is there perhaps a OAuthSwiftOpenURLInternally class that I have missed? Thanks
kerem closed this issue 2026-03-03 16:45:21 +03:00
Author
Owner

@phimage commented on GitHub (Sep 8, 2015):

No there is not, and that's not the work of a OAuth API to provide this because each website have its own page to login, the parameters name, the security etc...

You want to receive in your custom OAuthSwiftURLHandlerTypethe url provided by website
Then get the page programmatically(maybe with alamofire), make a POST to login with the good parameters because you already know an unique the user/password, and don't let user provide one

please close

<!-- gh-comment-id:138504761 --> @phimage commented on GitHub (Sep 8, 2015): No there is not, and that's not the work of a OAuth API to provide this because each website have its own page to login, the parameters name, the security etc... You want to receive in your custom `OAuthSwiftURLHandlerType`the url provided by website Then get the page programmatically(maybe with alamofire), make a POST to login with the good parameters because you already know an unique the user/password, and don't let user provide one please close
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/OAuthSwift#66
No description provided.