Where can I get the Google unlock button?

I configure my site to use google + signin .

For login google provides a more or less nice translated login button.

The code

<span id="signinButton">
  <span
    class="g-signin"
    data-callback="signinCallback"
    data-clientid="CLIENT_ID"
    data-cookiepolicy="single_host_origin"
    data-requestvisibleactions="http://schemas.google.com/AddActivity"
    data-scope="https://www.googleapis.com/auth/plus.login">
  </span>
</span>

unfolds to:

enter image description here

In order to monitor googles developer policies, an application must provide a way to unlink your application and account. (From: logout of google account and redirect )

Efficiency is simple, but as I understand it, Google does not provide a button (style / desigend). Or did I miss this? It should look similar / like a login button.

+5
source share
2 answers

, . .

.

, , , .

, jQuery . , access_token:

<script type="text/javascript">
function disconnectUser(access_token) {
  var revokeUrl = 'https://accounts.google.com/o/oauth2/revoke?token=' +
      access_token;

  // Perform an asynchronous GET request.
  $.ajax({
    type: 'GET',
    url: revokeUrl,
    async: false,
    contentType: "application/json",
    dataType: 'jsonp',
    success: function(nullResponse) {
      // Do something now that user is disconnected

      // Start account clean up
    },
    error: function(e) {
      // Handle the error
      // console.log(e);
      // You could point users to manually disconnect if unsuccessful
      // https://plus.google.com/apps
    }
  });
}
// Could trigger the disconnect on a button click
$('#revokeButton').click(disconnectUser);
</script>
<button id="revokeButton">Disconnect</button>

Edit:

, , , , Google+ . PhotoShop, . .

, . , - , .

+4