我正在研究WSO2 API管理器开发人员基础培训文档(LabkitAPIM200DF.pdf)。可以从https://github.com/wso2/WSO2-Training/releases/tag/APIM2.0.0DF下载,
这里我试图在第53页中做Publisher API。我跟随了所有的步骤,但我得到了禁止的错误。
1.使用以下文本在[APIM_HOME]/bin
文件夹中创建payload.json
文件并保存:
{
"callbackUrl": "www.google.lk",
"clientName": "rest_api_publisher",
"tokenScope": "Production",
"owner": "admin",
"grantType": "password refresh_token",
"saasApp": true
}
2.打开命令行接口。
3.使用命令导航到{APIM_HOME/bin]文件夹。
4.为客户端注册提供cURL命令。(在执行此操作之前,请确保正在运行)。
curl -X POST -H "Authorization: Basic YWRtaW46YWRtaW4=" -H
"Content-Type: application/json" -d
@payload.json http://localhost:9763/client-registration/v0.09/register
<!--
~ Copyright (c) 2016, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
~
~ WSO2 Inc. licenses this file to you under the Apache License,
~ Version 2.0 (the "License"); you may not use this file except
~
-->
<html>
<head>
<title>Error 403</title>
</head>
<body>
<h1>Error 403 - Forbidden</h1>
</body>
</html>
发布于 2016-12-19 11:41:00
URL中的版本应该是v0.10
http://localhost:9763/client-registration/v0.10/register
https://stackoverflow.com/questions/41219075
复制相似问题