【发布时间】:2024-01-15 09:48:01
【问题描述】:
我在 cognito 中创建了一个用户池,并在 Cognito 中设置了 OAuth2 代理。现在我正在尝试使用 curl 命令返回访问令牌。下面是命令
curl -X POST --user clientid:secret "https://mypooldomain.auth.eu-west-1.amazoncognito.com/oauth2/token?grant_type=client_credentials" -H 'Content-Type: application/x-www-form-urlencoded'
但下面我收到以下错误
curl: (35) schannel: next InitializeSecurityContext failed: Unknown error (0x80092012) - The revocation function was unable to check revocation for the certificate.
curl: (6) Could not resolve host: application
我尝试了来自谷歌的不同方法,这些方法都指向 curl 命令的问题。但在这种情况下没有任何工作正常。 如何解决此类问题 是否有人可以对此提供帮助?
谢谢
【问题讨论】:
-
你可以检查这个*.com/questions/54938026/…,也许 --ssl-no-revoke 会有所帮助
标签: curl oauth-2.0 amazon-cognito access-token