You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cxf.apache.org by se...@apache.org on 2015/07/07 18:51:46 UTC

cxf git commit: Initial demo README text

Repository: cxf
Updated Branches:
  refs/heads/master 2cfcbbc2c -> 8ec55ef06


Initial demo README text


Project: http://git-wip-us.apache.org/repos/asf/cxf/repo
Commit: http://git-wip-us.apache.org/repos/asf/cxf/commit/8ec55ef0
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/8ec55ef0
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/8ec55ef0

Branch: refs/heads/master
Commit: 8ec55ef0659a4b11fc9a9b8b0b12a65975616509
Parents: 2cfcbbc
Author: Sergey Beryozkin <sb...@talend.com>
Authored: Tue Jul 7 17:51:31 2015 +0100
Committer: Sergey Beryozkin <sb...@talend.com>
Committed: Tue Jul 7 17:51:31 2015 +0100

----------------------------------------------------------------------
 .../release/samples/jax_rs/big_query/README.txt | 44 ++++++++++++++++++++
 1 file changed, 44 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/8ec55ef0/distribution/src/main/release/samples/jax_rs/big_query/README.txt
----------------------------------------------------------------------
diff --git a/distribution/src/main/release/samples/jax_rs/big_query/README.txt b/distribution/src/main/release/samples/jax_rs/big_query/README.txt
index ee4cd9a..618e3b0 100644
--- a/distribution/src/main/release/samples/jax_rs/big_query/README.txt
+++ b/distribution/src/main/release/samples/jax_rs/big_query/README.txt
@@ -1,4 +1,48 @@
 JAX-RS Big Query Demo 
 =====================
 
+This demo demonstrates how Google BigQuery service can be used with 
+OAuth2 Authorization Code flow and a Google server-to-server flow and shows
+Apache CXF OIDC RP and JOSE support in action. 
+
+The demo access public BigQuery data sets - it is easy to modify it to access 
+the project-specific datasets if preferred.
+
+First, create a Big Query project as described in
+https://cloud.google.com/bigquery/sign-up
+
+1. OAuth2 Authorization Code flow.
+
+Create a client id and secret as described in 
+https://cloud.google.com/bigquery/authorization#clientsecrets.
+
+Set Redirect URI to 
+https://localhost:8080/bigquery/service/oidc/rp/complete 
+
+Build the demo with "mvn install" and start it with
+
+mvn jetty:run-war -Dclient_id=${client_id} -Dclient_secret=${client_secret} -Dproject_id=${project_id}
+
+where ${client_id} and ${client_secret} are Client Id and Secret, and ${project_id} is the id of your Google project.
+
+Then start a browser and go to "localhost:8080/bigquery/simpleLogin.jsp"
+
+2. Server to Server Flow.
+
+Create a client with a service account as described in
+https://developers.google.com/identity/protocols/OAuth2ServiceAccount,
+choose "Generate New P12 Key" and save it to the local disk.
+
+
+Build the demo with "mvn install" and start it with
+
+mvn exec:java -Dexec.args="/home/pathto/BigQueryProjectKey.p12 notasecret ${client_id} ${project_id}"
+
+where ${client_id} is Client Id and ${project_id} is the id of your Google project.
+
+
+
+
+
+