0
私はWSO2 APIマネージャーの開発者の基礎トレーニング文書(LabkitAPIM200DF.pdf)を作成しています。 https://github.com/wso2/WSO2-Training/releases/tag/APIM2.0.0DFからWSO2 AMトレーニング文書の問題
からダウンロードできます。ここでは、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クライアント登録のコマンドを指定します。 (これを行う前にAPIマネージャーサーバ が実行されていることを確認してください)。 URLで
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>