You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by si...@apache.org on 2020/09/11 04:44:34 UTC
[pulsar] branch master updated: Update the issuer url in the doc
(#7973)
This is an automated email from the ASF dual-hosted git repository.
sijie pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/pulsar.git
The following commit(s) were added to refs/heads/master by this push:
new 8512037 Update the issuer url in the doc (#7973)
8512037 is described below
commit 8512037b45ca4c5a8d9064a0d33dedb7781ae393
Author: Yong Zhang <zh...@gmail.com>
AuthorDate: Fri Sep 11 12:44:17 2020 +0800
Update the issuer url in the doc (#7973)
---
*Motivation*
Fix the issuer url is using the token endpoint.
---
.../java/org/apache/pulsar/client/impl/auth/oauth2/README.md | 2 +-
site2/docs/client-libraries-go.md | 2 +-
site2/docs/security-oauth2.md | 10 +++++-----
.../versioned_docs/version-2.6.1/client-libraries-go.md | 2 +-
site2/website/versioned_docs/version-2.6.1/security-oauth2.md | 8 ++++----
.../versioned_docs/version-2.6.2/client-libraries-go.md | 2 +-
site2/website/versioned_docs/version-2.6.2/security-oauth2.md | 8 ++++----
7 files changed, 17 insertions(+), 17 deletions(-)
diff --git a/pulsar-client/src/main/java/org/apache/pulsar/client/impl/auth/oauth2/README.md b/pulsar-client/src/main/java/org/apache/pulsar/client/impl/auth/oauth2/README.md
index 67ef9ca..55ffe58 100644
--- a/pulsar-client/src/main/java/org/apache/pulsar/client/impl/auth/oauth2/README.md
+++ b/pulsar-client/src/main/java/org/apache/pulsar/client/impl/auth/oauth2/README.md
@@ -86,7 +86,7 @@ curl --request POST \
```
In which,
-- `issuerUrl` parameter in this plugin is mapped to `--url https://dev-kt-aa9ne.us.auth0.com/oauth/token`
+- `issuerUrl` parameter in this plugin is mapped to `--url https://dev-kt-aa9ne.us.auth0.com`
- `privateKey` file parameter in this plugin should at least contains fields `client_id` and `client_secret`.
- `audience` parameter in this plugin is mapped to `"audience":"https://dev-kt-aa9ne.us.auth0.com/api/v2/"`
diff --git a/site2/docs/client-libraries-go.md b/site2/docs/client-libraries-go.md
index 83f8930..4617dff 100644
--- a/site2/docs/client-libraries-go.md
+++ b/site2/docs/client-libraries-go.md
@@ -667,7 +667,7 @@ This example shows how to configure OAuth2 authentication.
```go
oauth := pulsar.NewAuthenticationOAuth2(map[string]string{
"type": "client_credentials",
- "issuerUrl": "https://dev-kt-aa9ne.us.auth0.com/oauth/token",
+ "issuerUrl": "https://dev-kt-aa9ne.us.auth0.com",
"audience": "https://dev-kt-aa9ne.us.auth0.com/api/v2/",
"privateKey": "/path/to/privateKey",
"clientId": "0Xx...Yyxeny",
diff --git a/site2/docs/security-oauth2.md b/site2/docs/security-oauth2.md
index 5945218..32d24d1 100644
--- a/site2/docs/security-oauth2.md
+++ b/site2/docs/security-oauth2.md
@@ -50,7 +50,7 @@ The following shows a typical original Oauth2 request, which is used to obtain t
```bash
curl --request POST \
- --url https://dev-kt-aa9ne.us.auth0.com/oauth/token \
+ --url https://dev-kt-aa9ne.us.auth0.com \
--header 'content-type: application/json' \
--data '{
"client_id":"Xd23RHsUnvUlP7wchjNYOaIfazgeHd9x",
@@ -61,7 +61,7 @@ curl --request POST \
In the above example, the mapping relationship is shown as below.
-- The `issuerUrl` parameter in this plugin is mapped to `--url https://dev-kt-aa9ne.us.auth0.com/oauth/token`.
+- The `issuerUrl` parameter in this plugin is mapped to `--url https://dev-kt-aa9ne.us.auth0.com`.
- The `privateKey` file parameter in this plugin should at least contains the `client_id` and `client_secret` fields.
- The `audience` parameter in this plugin is mapped to `"audience":"https://dev-kt-aa9ne.us.auth0.com/api/v2/"`.
@@ -74,7 +74,7 @@ You can use the Oauth2 authentication provider with the following Pulsar clients
You can use the factory method to configure authentication for Pulsar Java client.
```java
-String issuerUrl = "https://dev-kt-aa9ne.us.auth0.com/oauth/token";
+String issuerUrl = "https://dev-kt-aa9ne.us.auth0.com";
String credentialsUrl = "file:///path/to/KeyFile.json";
String audience = "https://dev-kt-aa9ne.us.auth0.com/api/v2/";
@@ -105,7 +105,7 @@ The C++ client is similar to the Java client. You need to provide parameters of
pulsar::ClientConfiguration config;
std::string params = R"({
- "issuer_url": "https://dev-kt-aa9ne.us.auth0.com/oauth/token",
+ "issuer_url": "https://dev-kt-aa9ne.us.auth0.com",
"private_key": "../../pulsar-broker/src/test/resources/authentication/token/cpp_credentials_file.json",
"audience": "https://dev-kt-aa9ne.us.auth0.com/api/v2/"})";
@@ -122,7 +122,7 @@ This example shows how to configure OAuth2 authentication in Go client.
```go
oauth := pulsar.NewAuthenticationOAuth2(map[string]string{
"type": "client_credentials",
- "issuerUrl": "https://dev-kt-aa9ne.us.auth0.com/oauth/token",
+ "issuerUrl": "https://dev-kt-aa9ne.us.auth0.com",
"audience": "https://dev-kt-aa9ne.us.auth0.com/api/v2/",
"privateKey": "/path/to/privateKey",
"clientId": "0Xx...Yyxeny",
diff --git a/site2/website/versioned_docs/version-2.6.1/client-libraries-go.md b/site2/website/versioned_docs/version-2.6.1/client-libraries-go.md
index b56c0d4..2b04f7d 100644
--- a/site2/website/versioned_docs/version-2.6.1/client-libraries-go.md
+++ b/site2/website/versioned_docs/version-2.6.1/client-libraries-go.md
@@ -668,7 +668,7 @@ This example shows how to configure OAuth2 authentication.
```go
oauth := pulsar.NewAuthenticationOAuth2(map[string]string{
"type": "client_credentials",
- "issuerUrl": "https://dev-kt-aa9ne.us.auth0.com/oauth/token",
+ "issuerUrl": "https://dev-kt-aa9ne.us.auth0.com",
"audience": "https://dev-kt-aa9ne.us.auth0.com/api/v2/",
"privateKey": "/path/to/privateKey",
"clientId": "0Xx...Yyxeny",
diff --git a/site2/website/versioned_docs/version-2.6.1/security-oauth2.md b/site2/website/versioned_docs/version-2.6.1/security-oauth2.md
index 9f5d298..34de191 100644
--- a/site2/website/versioned_docs/version-2.6.1/security-oauth2.md
+++ b/site2/website/versioned_docs/version-2.6.1/security-oauth2.md
@@ -62,7 +62,7 @@ curl --request POST \
In the above example, the mapping relationship is shown as below.
-- The `issuerUrl` parameter in this plugin is mapped to `--url https://dev-kt-aa9ne.us.auth0.com/oauth/token`.
+- The `issuerUrl` parameter in this plugin is mapped to `--url https://dev-kt-aa9ne.us.auth0.com`.
- The `privateKey` file parameter in this plugin should at least contains the `client_id` and `client_secret` fields.
- The `audience` parameter in this plugin is mapped to `"audience":"https://dev-kt-aa9ne.us.auth0.com/api/v2/"`.
@@ -75,7 +75,7 @@ You can use the Oauth2 authentication provider with the following Pulsar clients
You can use the factory method to configure authentication for Pulsar Java client.
```java
-String issuerUrl = "https://dev-kt-aa9ne.us.auth0.com/oauth/token";
+String issuerUrl = "https://dev-kt-aa9ne.us.auth0.com";
String credentialsUrl = "file:///path/to/KeyFile.json";
String audience = "https://dev-kt-aa9ne.us.auth0.com/api/v2/";
@@ -106,7 +106,7 @@ The C++ client is similar to the Java client. You need to provide parameters of
pulsar::ClientConfiguration config;
std::string params = R"({
- "issuer_url": "https://dev-kt-aa9ne.us.auth0.com/oauth/token",
+ "issuer_url": "https://dev-kt-aa9ne.us.auth0.com",
"private_key": "../../pulsar-broker/src/test/resources/authentication/token/cpp_credentials_file.json",
"audience": "https://dev-kt-aa9ne.us.auth0.com/api/v2/"})";
@@ -123,7 +123,7 @@ This example shows how to configure OAuth2 authentication in Go client.
```go
oauth := pulsar.NewAuthenticationOAuth2(map[string]string{
"type": "client_credentials",
- "issuerUrl": "https://dev-kt-aa9ne.us.auth0.com/oauth/token",
+ "issuerUrl": "https://dev-kt-aa9ne.us.auth0.com",
"audience": "https://dev-kt-aa9ne.us.auth0.com/api/v2/",
"privateKey": "/path/to/privateKey",
"clientId": "0Xx...Yyxeny",
diff --git a/site2/website/versioned_docs/version-2.6.2/client-libraries-go.md b/site2/website/versioned_docs/version-2.6.2/client-libraries-go.md
index 132eeae..961a5db 100644
--- a/site2/website/versioned_docs/version-2.6.2/client-libraries-go.md
+++ b/site2/website/versioned_docs/version-2.6.2/client-libraries-go.md
@@ -668,7 +668,7 @@ This example shows how to configure OAuth2 authentication.
```go
oauth := pulsar.NewAuthenticationOAuth2(map[string]string{
"type": "client_credentials",
- "issuerUrl": "https://dev-kt-aa9ne.us.auth0.com/oauth/token",
+ "issuerUrl": "https://dev-kt-aa9ne.us.auth0.com",
"audience": "https://dev-kt-aa9ne.us.auth0.com/api/v2/",
"privateKey": "/path/to/privateKey",
"clientId": "0Xx...Yyxeny",
diff --git a/site2/website/versioned_docs/version-2.6.2/security-oauth2.md b/site2/website/versioned_docs/version-2.6.2/security-oauth2.md
index e0b5498..6f8a28f 100644
--- a/site2/website/versioned_docs/version-2.6.2/security-oauth2.md
+++ b/site2/website/versioned_docs/version-2.6.2/security-oauth2.md
@@ -62,7 +62,7 @@ curl --request POST \
In the above example, the mapping relationship is shown as below.
-- The `issuerUrl` parameter in this plugin is mapped to `--url https://dev-kt-aa9ne.us.auth0.com/oauth/token`.
+- The `issuerUrl` parameter in this plugin is mapped to `--url https://dev-kt-aa9ne.us.auth0.com`.
- The `privateKey` file parameter in this plugin should at least contains the `client_id` and `client_secret` fields.
- The `audience` parameter in this plugin is mapped to `"audience":"https://dev-kt-aa9ne.us.auth0.com/api/v2/"`.
@@ -75,7 +75,7 @@ You can use the Oauth2 authentication provider with the following Pulsar clients
You can use the factory method to configure authentication for Pulsar Java client.
```java
-String issuerUrl = "https://dev-kt-aa9ne.us.auth0.com/oauth/token";
+String issuerUrl = "https://dev-kt-aa9ne.us.auth0.com";
String credentialsUrl = "file:///path/to/KeyFile.json";
String audience = "https://dev-kt-aa9ne.us.auth0.com/api/v2/";
@@ -106,7 +106,7 @@ The C++ client is similar to the Java client. You need to provide parameters of
pulsar::ClientConfiguration config;
std::string params = R"({
- "issuer_url": "https://dev-kt-aa9ne.us.auth0.com/oauth/token",
+ "issuer_url": "https://dev-kt-aa9ne.us.auth0.com",
"private_key": "../../pulsar-broker/src/test/resources/authentication/token/cpp_credentials_file.json",
"audience": "https://dev-kt-aa9ne.us.auth0.com/api/v2/"})";
@@ -123,7 +123,7 @@ This example shows how to configure OAuth2 authentication in Go client.
```go
oauth := pulsar.NewAuthenticationOAuth2(map[string]string{
"type": "client_credentials",
- "issuerUrl": "https://dev-kt-aa9ne.us.auth0.com/oauth/token",
+ "issuerUrl": "https://dev-kt-aa9ne.us.auth0.com",
"audience": "https://dev-kt-aa9ne.us.auth0.com/api/v2/",
"privateKey": "/path/to/privateKey",
"clientId": "0Xx...Yyxeny",