Used to check for browser translation.
用于检测浏览器翻译。
ブラウザの翻訳を検出する

Configure Google Login

zhanghan
2024-06-23 18:12
· edited

Google provides the OAuth login method, allowing users to log in to applications that have integrated Google OAuth using their Google accounts. For users, this means they no longer need to remember different accounts and passwords, and for applications, there is no need to develop their own login and registration system. So it's a good thing for both users and application developers.

Blocklet Server supports configuring and enabling Google login for a Blocklet. Below is how to configure Google login in a Blocklet and use Google accounts to log in.

  1. Register your Google Account.
  2. Create project
  3. Configure OAuth
    • Click OAuth consent screen, select External, click CREATE
      • image.png

    • Fill in the necessary information according to the instructions on the page
      • image.png

  4. Create credentials
    • Click Credentials , click CREATE CREDENTIALS , select OAuth client ID
      • image.png

    • Select Web application, fill in Name, configure the domain name of the Blocklet that needs Google login according to your needs, and replace demo.blocklet.dev with the corresponding fields as shown in the figure.
      • image.png

    • After clicking on CREATE, the page will display a success message.
      • image.png

    • Save Client ID and Client secret
  5. Configure Blocklet
    • Arrive at the control panel of Blocklet, click "Dashboard", "Configuration", "Login", "Third Party Login" in order
      • image.png

    • Fill in the just saved Client ID, Client Secret, save
  6. At this time on the Blocklet login page, you can see that you can log in via Google.
    • Click Google to log in.
    image.png

Sticker