-
Notifications
You must be signed in to change notification settings - Fork 549
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SmugMug Module #287
base: master
Are you sure you want to change the base?
SmugMug Module #287
Conversation
Proposed module previously tested in HynesIP fork that is 462 commits behind.
It seems like there may be very little to do to allow this to succeed. |
SmugMug support referenced http://tools.ietf.org/html/rfc5849#section-2.3 and http://tools.ietf.org/html/rfc5849#section-3.1 when I asked about how to proceed. |
version : "1.0a", | ||
auth : "http://api.smugmug.com/services/oauth/1.0a/authorize?Access=Full&Permissions=Modify", | ||
//http://api.smugmug.com/services/oauth/1.0a/authorize?Access=Full&Permissions=Modify&allowThirdPartyLogin=0&showSignUpButton=false&viewportScale=1.0 | ||
request : "http://api.smugmug.com/services/oauth/1.0a/getRequestToken?oauth_callback=http://localhost:3000/redirect.html", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please omit the oauth_callback. The value of oauth_callback
is derived from the redirect_uri
at the point the OAuth1a request URI is constructed by the OAuth Proxy service.
Removed oauth_callback parameter Local testing produces same results. Popup stays open on URL http://localhost:3000/redirect.html?Access=Full&Permissions=Modify&oauth_token=4f0964e2beeaacca3948ba3a8f7d91a0&oauth_verifier=100103
I'll send the URLs from each shim and indicate the line in hello.js that is reporting the Uri Malformed. |
Here's where it breaks on both: |
I changed to API credentials that included a callback in the SmugMug settings and got a different response URL on my old shim (same result as above on https://auth-server.herokuapp.com/proxy): |
I see the proper response Url in those parameters, but don't know where or how it's parsed out. |
Could it be choking on the Access and Permissions parameters? I removed them from the Url, but don't know how to list them in the module. The values can:
|
This is the SmugMug reference: https://api.smugmug.com/api/v2/doc/tutorial/authorization.html |
I found your Module wiki and looked at the other 1.0a examples. I'll make changes to the PR module to match that API. |
Bare minimum to get Access Token. This doesn't change the results, however.
(sigh)
Add CLIENT_ID and add variable to CLIENT_IDS_ALL obj
I seeded a new local copy of the shim to see the values and responses. SmugMug never gets to Step 2. Unless something seems obvious to you, please don't spend too much time on this PR. Their version 2 is still Beta and I suspect the poor response may be on their end. |
Can you try using decodeURIComponent instead of decodeURI? |
e.g.:
|
Proposed module previously tested in HynesIP fork that is 462 commits behind.