[GH-ISSUE #134] What's about Magento Rest API? #79

Closed
opened 2026-03-03 16:45:30 +03:00 by kerem · 2 comments
Owner

Originally created by @kphetrungnapha on GitHub (Oct 31, 2015).
Original GitHub issue: https://github.com/OAuthSwift/OAuthSwift/issues/134

I had changed some parameters and url endpoint for matching with Magento Rest API. Unfortunately, when I granted and callback from webview to my app again the response always said
"Error Domain=oauthswift.error Code=-1 "Oauth problem." UserInfo={NSLocalizedFailureReason=Oauth problem.}"

Thank you for your help.

Originally created by @kphetrungnapha on GitHub (Oct 31, 2015). Original GitHub issue: https://github.com/OAuthSwift/OAuthSwift/issues/134 I had changed some parameters and url endpoint for matching with Magento Rest API. Unfortunately, when I granted and callback from webview to my app again the response always said "Error Domain=oauthswift.error Code=-1 "Oauth problem." UserInfo={NSLocalizedFailureReason=Oauth problem.}" Thank you for your help.
kerem closed this issue 2026-03-03 16:45:30 +03:00
Author
Owner

@phimage commented on GitHub (Oct 31, 2015):

did you set oauth.allowMissingOauthVerifier=true
you must do that when the api don't return the security parameter oauth_verifier

the other reason could be that the returned parameter by api is not named oauth_token or token

ps: If this work please close the issue

<!-- gh-comment-id:152760562 --> @phimage commented on GitHub (Oct 31, 2015): did you set `oauth.allowMissingOauthVerifier=true` you must do that when the api don't return the security parameter `oauth_verifier` the other reason could be that the returned parameter by api is not named `oauth_token` or `token` ps: If this work please close the issue
Author
Owner

@kphetrungnapha commented on GitHub (Nov 1, 2015):

I have resolved it. The error was happened because when it was callback from Magento to my app, I forgot to append query string from Magento with my scheme before callback. However, thank you for your answer. :)

<!-- gh-comment-id:152836501 --> @kphetrungnapha commented on GitHub (Nov 1, 2015): I have resolved it. The error was happened because when it was callback from Magento to my app, I forgot to append query string from Magento with my scheme before callback. However, thank you for your answer. :)
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#79
No description provided.