This is an automated email from the ASF dual-hosted git repository.

duncangrant pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/brooklyn-docs.git


The following commit(s) were added to refs/heads/master by this push:
     new 56ff713  upgraded login options for oauth
     new 42aa827  Merge pull request #286 from jcabrerizo/feature/oauthLogin
56ff713 is described below

commit 56ff7133cf019cd434ed0aae57482fb970df6a89
Author: Juan Cabrerizo <j...@cloudsoft.io>
AuthorDate: Mon Jun 3 09:27:43 2019 +0100

    upgraded login options for oauth
---
 guide/ops/cli/cli-ref-guide.md   | 10 ++++++++--
 guide/ops/cli/cli-usage-guide.md |  2 +-
 2 files changed, 9 insertions(+), 3 deletions(-)

diff --git a/guide/ops/cli/cli-ref-guide.md b/guide/ops/cli/cli-ref-guide.md
index 8df68ea..7dc3720 100644
--- a/guide/ops/cli/cli-ref-guide.md
+++ b/guide/ops/cli/cli-ref-guide.md
@@ -100,10 +100,16 @@ policy       pol
 ### Login
 
 - `br login <URL> [username [password]]`  
-  Login to Brooklyn.  The CLI will prompt for a password if it is not 
provided.  If the Brooklyn server is running on 
-  localhost with no security enabled, the username and password may be 
omitted.  
+  Login to Brooklyn using basic authorization (implicit 
--authorization=Basic).  The CLI will prompt for a password if 
+  it is not provided.  If the Brooklyn server is running on localhost with no 
security enabled, the username and 
+  password may be omitted.  
   On successful login, the version of the connected Brooklyn server is shown.
 
+- `br login <URL> --authorization=Bearer:<JWT-token>`  
+  Login to Brooklyn using oauth. The CLI will try to use the provided token 
for login in the Brooklyn server.
+  On successful login, the version of the connected Brooklyn server is shown. 
If not, it will show the server error 
+  response
+  
 - `br version`
   Show the version of the connected Brooklyn server.
 
diff --git a/guide/ops/cli/cli-usage-guide.md b/guide/ops/cli/cli-usage-guide.md
index c5c18db..4ed7757 100644
--- a/guide/ops/cli/cli-usage-guide.md
+++ b/guide/ops/cli/cli-usage-guide.md
@@ -13,7 +13,7 @@ conjunction with a shell pipeline like `some_command | cut -f 
1 -d '|' | xargs -
 
 ## Login
 First, login to the running Brooklyn server.  This example assumes that the 
Brooklyn server
-is running on `localhost`; change the URL and credentials as necessary.
+is running on `localhost` configured to use basic authorization; change the 
URL and credentials as necessary.
 
 ```text
 $ br login http://localhost:8081 admin

Reply via email to