【问题标题】:Acumatica Authorization FlowAcumatica 授权流程
【发布时间】:2018-06-24 16:23:57
【问题描述】:

我正在尝试使用Authorization Flow 而不是Resource Owner Password Flow 连接到Acumatica,这是我能够找到examples 的唯一流程。我已经尝试了“客户端应用程序将连接到的 Acumatica ERP 实例的 URL”的各种子集,用于我在上面作为服务参考发布的授权流程链接中引用的 <Acumatica ERP instance URL>,但似乎没有一个得到我可以将令牌传递给任何具有任何东西的端点(实际上,它们都完全失败了,引用的变体无法解析或不允许访问)。作为参考,完整的 URL 是https://try.acumatica.com/isv/entity/Default/6.00.001?wsdl&company=(My Company's Name)。这可以获取密码流,但不能获取授权流。

我如何实际实施授权流程?

【问题讨论】:

    标签: .net vb.net oauth-2.0 acumatica


    【解决方案1】:

    整个流程实际上由您自己已经看到的链接描述:https://help.acumatica.com/Main.aspx?ScreenId=ShowWiki&pageid=a8f71c44-9f5c-4af8-9d47-bc815c8a58e7

    您要查找的 url 是 https://try.acumatica.com/isv/identity/,它将 https://try.acumatica.com/isv/identity/.well-known/openid-configuration 作为 OIDC 发现端点,将 https://try.acumatica.com/isv/identity/connect/authorize 作为授权端点,将 https://try.acumatica.com/isv/identity/connect/token 作为令牌端点。

    【讨论】:

    • 这是我在尝试添加服务引用时收到错误Metadata contains a reference that cannot be resolved: 'https://try.acumatica.com/isv/identity/'. The HTTP request is unauthorized with client authentication scheme 'Anonymous'. The authentication header received from the server was ''. The remote server returned an error: (401) Unauthorized. If the service is defined in the current solution, try building the solution and adding the service reference again. 的原因。在/identity/ 之后添加各种位会在同一主题上得到各种变体。
    • 好的,我正在测试假设这是因为我没有指定 URL 参数。
    • 不,添加 URL 参数仍然会出现相同的错误。
    • 这给出了同样的错误。除了服务参考之外,我还有其他方法吗?
    • 如果您谈论的是 Visual Studio 的添加服务引用对话框,那么它与 OAuth/OIDC 完全无关。您应该使用一些授权客户端(如IdentityModel)来处理令牌,然后将生成的令牌传递给 C-b API。
    猜你喜欢
    • 2017-05-24
    • 1970-01-01
    • 2014-10-31
    • 2016-11-18
    • 2019-02-13
    • 2014-05-10
    • 1970-01-01
    • 2022-01-06
    • 2019-09-12
    相关资源
    最近更新 更多