Magento has two important documents that outline how OAuth 1.0a authentication/authorization works (here and here). There also appears to be a Magento sponsored example of OAuth.
There are two important steps:
- Server to server POST for initial OAuth key exchange to the Callback URL.
oauth_consumer_key
,oauth_consumer_secret
,oauth_verifier
, andstore_base_url
are sent. - User is redirected with a GET to the Identity Link URL.
consumer_id
andsuccess_call_back
are sent.
How in the world are #1 and #2 connected?
I don't see any common data and the example from Magento just uses a common session, which I can only assume is a horrible idea. Even more confusing is why consumer_id
is sent with the user.