mirror of
https://github.com/OAuthSwift/OAuthSwift.git
synced 2026-04-26 12:45:52 +03:00
[GH-ISSUE #712] Does not work with Zotero Oauth #464
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#464
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 @hassanzadeh on GitHub (Jan 15, 2024).
Original GitHub issue: https://github.com/OAuthSwift/OAuthSwift/issues/712
Description:
Tried with Zotero (Oauth v1) but failed with error: The operation couldn’t be completed. (OAuthSwiftError error -10.)
OAuth Provider? (Twitter, Github, ..):
Zotero: https://www.zotero.org/support/dev/web_api/v2/oauth
OAuth Version:
Version 1
OS (Please fill the version) :
Installation method:
Library version:
Latest version
Xcode version:
Xcode v15
Swift
@hassanzadeh commented on GitHub (Jan 15, 2024):
Here is my code:
`func authenticateWithZotero() {
let oauthswift = OAuth1Swift(
consumerKey: "xxx",
consumerSecret: "zzzz",
requestTokenUrl: "https://www.zotero.org/oauth/request",
authorizeUrl: "https://www.zotero.org/oauth/authorize",
accessTokenUrl: "https://www.zotero.org/oauth/access"
)
@phimage commented on GitHub (Jan 15, 2024):
please use correctly markdown
let oauthswift = OAuth1Swiftis bad, you do not follow readme and demo codethat cause
-10 > https://github.com/OAuthSwift/OAuthSwift/blob/master/Sources/OAuthSwiftError.swift#L58
@hassanzadeh commented on GitHub (Jan 15, 2024):
Thanks for your response,
I tested it, it gives me the oauth_token but Not the access_token, is there a specific function I should call to get the access token?