Coder Social home page Coder Social logo

piraces / googleonetapsample Goto Github PK

View Code? Open in Web Editor NEW
14.0 2.0 9.0 196 KB

Frameworkless sample for Google One Tap User Experience

Home Page: https://googleonetap.developer.li/

License: MIT License

CSS 0.41% JavaScript 8.44% HTML 91.15%
google google-identity google-one-tap sample-code

googleonetapsample's Introduction

Google One Tap Sample

Basic Frameworkless sample for Google One Tap User Experience in a web page.

Google One Tap experience

Live demo

How to use it

To proceed with testing the authentication flow, follow the prompt shown in the top right corner of the page.

The Google One Tap flow is configured to automatically show the prompt in the right top corner, auto-select the current Google Account if you are already logged in with Google and proceed with the authentication flow automatically if you have done it before and your Google account allows it.

If no prompt appears you just can click the button "Sign in with Google" to start the authentication flow.

Requested scopes

The following info is being requested:

API Scope Description
- .../auth/userinfo.email See your primary Google Account email address
- .../auth/userinfo.profile See your personal info, including any personal info you've made publicly available
- openid Associate you with your personal info on Google

Important notes

  • The authentication is done in a secure way using HTTPS and the data requested to Google by your consent does not leave the browser or saved anywhere.
  • You can inspect the source code or reach me for more information.
  • This web page is for educational and testing purposes only.

License

This project is licensed under the MIT License.

googleonetapsample's People

Contributors

piraces avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

googleonetapsample's Issues

Pop Up doesn't show

Hi

I have paste my Client-ID into main.js but it doesn't show.
I already have created my OAuth with external consent.

What do I missed?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.