首页 文章

wso2 apim 3.0-m24令牌api问题?

提问于
浏览
0

我之前使用过apim 3-m18并发布'ing to localhost:9443/api/auth/oauth2/v1.0/token?grant_type=password&scope=apim:api_view with the basic auth token of clientid:clientsecret returned from /api/id4entity/oauth2/dcr/v1.0/register endpoint worked fine in giving me the oauth token for admin api' s - 例如在wso2 API-M 3.0 - how to get oauth token for product/admin api calls列出的逻辑

但是,我升级到最新的rev(m24)并且dcr寄存器 endpoints 仍然正常工作,但是当我用来自dcr的base64编码的clientid:clientsecret命中令牌api时,请求在我收到超时错误之前挂起 .

当我退出m24并重新启动m18并发出完全相同的请求(dcr调用clientid / secret,然后是令牌api调用)时,它可以工作 . 然后切换到m22失败并出现相同的请求 .

我没有在github上看到任何文档或问题,所以很奇怪,如果有人知道我可能需要更改以获取oauth令牌 . 谢谢 .

1 回答

  • 0

    你能用下面的curl命令吗?

    curl -X POST -H "Authorization: Basic N2Y4MzM0ODEtNjk1ZS00OWY4LTg0OTgtOGU0NjUwNzhmYjljOmU1NmZlOTM3LTQwZjYtNGEwMy04MDIzLTE4ZGE0YmZmNWU3OA==" -H "Content-Type: application/x-www-form-urlencoded" -d 'username=admin&password=admin&grant_type=password&scope=scope' "https://localhost:9443/api/auth/oauth2/v1.0/token" -kv
    

    授权令牌是Base64编码的(clientId:clientSecret)

相关问题