Repository: cxf Updated Branches: refs/heads/master 2fe88ec15 -> 75115ee15
Removing unused forms from the bigquery demo Project: http://git-wip-us.apache.org/repos/asf/cxf/repo Commit: http://git-wip-us.apache.org/repos/asf/cxf/commit/75115ee1 Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/75115ee1 Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/75115ee1 Branch: refs/heads/master Commit: 75115ee15740b33c5cc09b1f4b79fc4a54e4611c Parents: 2fe88ec Author: Sergey Beryozkin <sberyoz...@talend.com> Authored: Thu Jul 16 11:32:27 2015 +0300 Committer: Sergey Beryozkin <sberyoz...@talend.com> Committed: Thu Jul 16 11:32:27 2015 +0300 ---------------------------------------------------------------------- .../src/main/webapp/googlePlusSignIn.html | 22 -------- .../src/main/webapp/googlePlusSignInFlow.html | 59 -------------------- 2 files changed, 81 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cxf/blob/75115ee1/distribution/src/main/release/samples/jax_rs/big_query/src/main/webapp/googlePlusSignIn.html ---------------------------------------------------------------------- diff --git a/distribution/src/main/release/samples/jax_rs/big_query/src/main/webapp/googlePlusSignIn.html b/distribution/src/main/release/samples/jax_rs/big_query/src/main/webapp/googlePlusSignIn.html deleted file mode 100644 index 59db61a..0000000 --- a/distribution/src/main/release/samples/jax_rs/big_query/src/main/webapp/googlePlusSignIn.html +++ /dev/null @@ -1,22 +0,0 @@ -<html lang="en"> - <head> - <meta name="google-signin-scope" content="profile email"> - <meta name="google-signin-client_id" content="${client_id}"> - <script src="https://apis.google.com/js/platform.js" async defer></script> - </head> - <body> - <div class="g-signin2" data-onsuccess="onSignIn" data-theme="dark"></div> - <script> - function onSignIn(googleUser) { - var id_token = googleUser.getAuthResponse().id_token; - var xhr = new XMLHttpRequest(); - xhr.onload = function() { - alert(xhr.response); - } - xhr.open('POST', 'https://localhost:8080/bigquery/service/oidc/rp/signin'); - xhr.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded'); - xhr.send('idtoken=' + id_token); - }; - </script> - </body> -</html> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/cxf/blob/75115ee1/distribution/src/main/release/samples/jax_rs/big_query/src/main/webapp/googlePlusSignInFlow.html ---------------------------------------------------------------------- diff --git a/distribution/src/main/release/samples/jax_rs/big_query/src/main/webapp/googlePlusSignInFlow.html b/distribution/src/main/release/samples/jax_rs/big_query/src/main/webapp/googlePlusSignInFlow.html deleted file mode 100644 index 0f128ff..0000000 --- a/distribution/src/main/release/samples/jax_rs/big_query/src/main/webapp/googlePlusSignInFlow.html +++ /dev/null @@ -1,59 +0,0 @@ -<html itemscope itemtype="http://schema.org/Article"> -<head> - <!-- BEGIN Pre-requisites --> - <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"> - </script> - <script src="https://apis.google.com/js/client:platform.js?onload=start" async defer> - </script> - <!-- END Pre-requisites --> -</head> -<body> -<div id="signinButton"> - <span class="g-signin" - data-scope="https://www.googleapis.com/auth/plus.login" - data-clientid="${client_id}" - data-redirecturi="postmessage" - data-accesstype="offline" - data-cookiepolicy="single_host_origin" - data-callback="signInCallback"> - </span> -</div> -<div id="result"></div> -<script> -function signInCallback(authResult) { - if (authResult['code']) { - - // Hide the sign-in button now that the user is authorized, for example: - $('#signinButton').attr('style', 'display: none'); - - // Send the code to the server - $.ajax({ - type: 'POST', - url: 'service/search', - contentType: 'application/octet-stream; charset=utf-8', - success: function(result) { - // Handle or verify the server response if necessary. - // Prints the list of people that the user has allowed the app to know - // to the console. - console.log(result); - //if (result['profile'] && result['people']){ - // $('#results').html('Hello ' + result['profile']['displayName'] + '. You successfully made a server side call to people.get and people.list'); - //} else { - // $('#results').html('Failed to make a server-side call. Check your configuration and console.'); - //} - }, - processData: false, - data: authResult['code'] - }); - } else if (authResult['error']) { - // There was an error. - // Possible error codes: - // "access_denied" - User denied access to your app - // "immediate_failed" - Could not automatially log in the user - // console.log('There was an error: ' + authResult['error']); - } -} -</script> -</body> -</html> -