Magento的REST API认证 [英] Magento REST api authentication

查看:274
本文介绍了Magento的REST API认证的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法通过从code,而不是在弹出每次输入凭据登录授权?

Is there a way to pass login credentials from code instead of entering credentials everytime in the popup for login authorization?

推荐答案

您不要求登录凭据授权每一次,你会得到通过OAuth的在全成授权的访问令牌和访问秘密,使用后对进一步呼吁在API.Oauth协议以这种方式工作。

You dont require login credentials every time for authorization,you'll get an access token and access secret upon successfull authorization by OAuth,use the later for further calls to the API.Oauth protocol works this way.

我想是的Magento使用OAuth 1.0 / 1.0A,所以每次你会授权你得到一个用户,

I guess Magento is using OAuth 1.0/1.0a,so everytime you'll authorize a user you get,

组oauth_token - 访问令牌,提供访问受保护资源

oauth_token - the Access Token that provides access to protected resources.

oauth_token_secret - 一个与访问令牌相关联的秘密

oauth_token_secret - the secret that is associated with the Access Token.

这篇关于Magento的REST API认证的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆