mirror of
https://github.com/OAuthSwift/OAuthSwift.git
synced 2026-04-26 20:55:57 +03:00
[GH-ISSUE #428] Error In OAuth 2.0 with Dribbble #278
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#278
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 @ghost on GitHub (Jan 3, 2018).
Original GitHub issue: https://github.com/OAuthSwift/OAuthSwift/issues/428
Description:
Error: error._code : -10
error.localizedDescription : "The operation couldn’t be completed. (OAuthSwiftError error -10.)"
Code:
let oauthswift = OAuth2Swift(
consumerKey: "",
consumerSecret: "",
authorizeUrl: "https://dribbble.com/oauth/authorize",
accessTokenUrl: "https://dribbble.com/oauth/token",
responseType: "code"
)
Test Case :
working fine uptill this point and get correct url. but gives error in https://dribbble.com/oauth/token genration
func application(_ app: UIApplication, open url: URL, options: [UIApplicationOpenURLOptionsKey: Any] = [:]) -> Bool {
if url.host == "oauth-callback" {
print(url.debugDescription)
OAuthSwift.handle(url: url)
}
return true
}
OAuth Provider (Twitter, Github, ..):
Dribbble
OAuth Version:
OS (Please fill the version) :
Installation method:
Library version:
Xcode version:
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 (Jan 13, 2018):
see https://github.com/OAuthSwift/OAuthSwift/issues/361
you must retain oauth swift object
so no "let oauthswift = OAuth2Swift("
but "self.oauthswift = OAuth2Swift("