mirror of
https://github.com/OAuthSwift/OAuthSwift.git
synced 2026-04-26 20:55:57 +03:00
[GH-ISSUE #328] Trying to authenticate GitHub API but success or failure doesn't run #202
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#202
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 @dannymout on GitHub (Dec 30, 2016).
Original GitHub issue: https://github.com/OAuthSwift/OAuthSwift/issues/328
Description:
This is the code I'm using:
When I run it nothing is happening.
successdoesn't run, neither doesfailure.Also,
consumerKeyand 'consumerKey' are filled in with the client ID and client secret on my end.app-nameis also the actual name of the app on my end.OAuth Provider (Twitter, Github, ..):
GitHub
OAuth Version:
OS (Please fill the version) :
Installation method:
Library version:
Xcode version:
8.0 (Swift 3.0)
8.0 (Swift 2.3)
7.3.1
other: (Please fill in the version you are using.)
objective c
@phimage commented on GitHub (Dec 31, 2016):
Try a no empty State
Try scope 'user', or encore scope (maybe there is an issue)
I don't know github callback URL recommandation but why there is "code="
@phimage commented on GitHub (Jan 1, 2017):
You describe normal oauth flow. So this must be done automatically by OAuthSwift
@dannymout commented on GitHub (Jan 1, 2017):
Also, Xcode shows that there's no network activity from the app.
@kpfefferle commented on GitHub (Jan 1, 2017):
@dannymout Did you set up the URL scheme to handle the GitHub redirect per the instructions here and here? This is required to handle the response from GitHub before either the success or failure closures will execute.
@dannymout commented on GitHub (Jan 2, 2017):
@kpfefferle I forgot something in the AppDelegate, I put the if statement, but forgot to add something to the parameters.