Magento REST API 身份验证 [英] Magento REST api authentication

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

问题描述

有没有办法从代码中传递登录凭据,而不是每次都在弹出窗口中输入凭据进行登录授权?

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天全站免登陆