英文:
WSO2 Integration Studio Netsuite connector change authentication
问题
我正在尝试在WSO2中使用Netsuite连接器,目前它使用电子邮件和密码进行授权。我的Netsuite账户是一个高权限的账户,因为我需要访问销售订单和客户信息。当我尝试使用连接器时,它返回一条消息说我需要双因素身份验证。是否有办法编辑连接器,使其使用令牌进行授权?这样我就不需要双因素身份验证了。
我已经尝试编辑连接器的init.xml文件的XML文件,以接受访问令牌,但没有成功。
英文:
I am trying to use the Netsuite connector in WSO2, currently it authorizes with email and password. My Netsuite account is a high-priviledged account as I need to access information about Sales Orders and Customers. When I try to use the connector, it gives a response saying I need two-factor authentication. Is there any way to edit the connector so it authorizes with a bearer token? This way I don't need TFA.
I have tried editing the XML files of the connector's init.xml file to take in the access token but it didn't work.
答案1
得分: 0
目前,电子邮件和密码作为SOAP头发送,就像此处所示。您需要想出如何发送Bearer令牌,然后相应地更改负载。
英文:
At the moment the Email and the password is send as a SOAP Header as in here. You will have to figure out how to send the Bearer token and then change the Payload accordingly.
答案2
得分: 0
不使用连接器,我创建了自己的SOAP有效负载,并使用了tokenPassport对象进行身份验证,这是我通过@ycr发现的 现在我的Netsuite集成正常工作。
英文:
Instead of using the connector, I created my own SOAP payload and used the tokenPassport object for authentication which I discovered thanks to @ycr now my Netsuite integration is working properly
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论