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

Configure GitHub login

zhanghan
2024-06-23 18:08
· edited

GitHub provides OAuth login, users can log in to applications that have integrated GitHub OAuth using GitHub accounts. For users, they no longer need to remember different accounts and passwords; for applications, there is no longer a need to develop their own login and registration system. So it is a good thing for both users and application developers.

Blocklet Server supports configuring and enabling GitHub login for a Blocklet. Below is how to configure GitHub login in a Blocklet and use a GitHub account to complete the login.

  1. Register a GitHub account
  2. Create a GitHub OAuth project.
    • Open https://github.com/settings/developers
    • Click on New OAuth App and fill in the corresponding information as prompted on the page. Depending on the domain name of the Blocklet you need to configure GitHub login, replace demo.blocklet.dev with the corresponding fields as shown in the figure below.
      • image.png

    • Click Register application, you will now enter the details page of this OAuth project.
    • Click Generate a new client secret
      • image.png

    • Save Client ID and Client secrets.
  3. 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
  4. At this time, you can see that you can log in through GitHub on the Blocklet login page.
    • Click GitHub to log in.
      • image.png

Sticker