Search code examples
htmlazureoauth-2.0google-oauthazure-authentication

Azure with OAuth 2 - google+ login information, and logout button


I'm new in programming and I have a question.

I try to use Azure with my simple HTML page to learn about Azure. I added authentication with Google with this tutorial

It is worked good, but now I want to add login name (like: Hello @User), and log-out button into my page, but I don't know how to do that.

Can anyone help me with it?

Sorry for my bad english.


Solution

  • Google provides some client library for OAuth2 such as google-oauth-java-client and plenty of samples on google-api-java-client-samples.
    If you want a step by step tutorial, you can use this: OAuth 2.0 clients in Java programming tutorial series