我正在尝试连接到Twinfield API。我在开发人员门户注册了一个应用程序,并创建了一个回调URI。我的电话如下:
https://login.twinfield.com/auth/authentication/connect/authorize?redirect_uri=https://oauth.pstmn.io/v1/callback&response_type=id_token+token&client_id=###&client_secret=#####链接到双字段api文档
但是,我得到了一个错误,说明客户端应用程序是未知的或没有授权的。
有人能帮我解决这个问题吗?
发布于 2022-05-12 08:55:41
认为您遗漏了代码,请参见下面的response_type
&response_type=code&scope=openid+twf.user+twf.organisation+twf.organisationUser+offline_access&redirect_uri=https://oauth.pstmn.io/v1/callback&一旦您运行了这个程序,您就会得到一个代码,并与basic64encoding of您的client_id:client_secret一起为您提供一个访问代码。
整个请求应该如下所示:
https://login.twinfield.com/auth/authentication/connect/authorize?client_id={xxxx}&response_type=code&scope=openid+twf.user+twf.organisation+twf.organisationUser+offline_access&redirect_uri=https://oauth.pstmn.io/v1/callback&state=SOME_RANDOM_STATE&nonce=SOME_RANDOM_NONCE为了在postman中实现这个功能,我需要将整个链接复制到浏览器中,在那里登录,然后在看到页面“您的调用经过身份验证”时从返回链接中获取代码。
https://stackoverflow.com/questions/72124597
复制相似问题