npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@logto/connector-kook

v0.2.0

Published

KOOK connector implementation.

Downloads

55

Readme

KOOK connector

The official Logto connector for KOOK social sign-in web apps.

KOOK 应用社交登录官方 Logto 连接器 中文文档

Table of contents

Get started

KOOK connector enables end-users to sign in to your application using their own KOOK account via KOOK OAuth 2.0 authentication protocol.

Create an Application in the KOOK Developer Center

💡 Tip You can skip some sections if you have already finished.

💥 Warning You need to apply for KOOK OAuth2 permission before creating an OAuth2 Application. Please check out the information on the OAuth2 page or ask KOOK's staff in KOOK official developer server for more information.

OAuth2 permission required page

  1. Go to KOOK Developer Center (KOOK 开发者中心) and sign in with your KOOK account. You may register a new account if you don't have one.
  2. Click the Create Application (新建应用) button to create an application, choose a name for it (Ex: LogtoAuth) and click Confirm (确定)
  3. Click the application icon you created, and go to OAuth2 page.
  4. Add the valid redirects (Ex: ${your_logto_origin}/callback/${connector_id}) in the Callback URIs (回调地址) fields. You can find the redirect uri in the logto admin console connector details page.
  5. Don't forget to check the get_user_info scope in the OAuth2 link builder (OAuth2 链接生成器)

OAuth2 link builder (OAuth2 链接生成器)

Configure your KOOK connector

Fill out the clientId and clientSecret field with Client ID and Client Secret you've got from OAuth2 page mentioned in the previous section.

Config types

| Name | Type | | ------------ | ------ | | clientId | string | | clientSecret | string | | scope | string |

Test KOOK connector

That's it. The KOOK connector should be available now. Don't forget to Enable connector in sign-in experience.

Reference

KOOK 连接器

💡 Tip

你可以跳过已经完成的部分。

💥 Warning 在创建 OAuth2 应用之前,你需要向 KOOK 申请 OAuth2 权限。如何申请请参考 OAuth2 页上的信息或在 KOOK 官方开发者服务器咨询 KOOK 工作人员。

需要授权 OAuth2 权限

  1. 打开 KOOK 开发者中心 并登录你的 KOOK 最后。如果你没有注册账号,注册一个!
  2. 点击 新建应用 按钮创建一个新的应用,然后给你的应用起一个名字(如:LogtoAuth)然后点击 确定
  3. 点击你刚刚创建的应用的图标,切换到 OAuth2 页面。
  4. 回调地址 一栏填入你的 Callback URI(比如说:${your_logto_origin}/callback/${connector_id})。你可以在 Logto 控制台的连接器详细页找到你的 Callback URI。
  5. 不要忘记在 OAuth2 链接生成器 勾选 get_user_info scope。

OAuth2 链接生成器

配置你的 KOOK 连接器

分别用 OAuth 应用详情页面中的 Client IDClient Secret 字段填写 clientIdclientSecret 字段。

配置类型

| 名称 | 类型 | | ------------ | ------ | | clientId | string | | clientSecret | string | | scope | string |

测试 KOOK 连接器

大功告成。别忘了 在登录体验中启用本连接器

在 KOOK 连接器启用后,你可以构建并运行你的应用看看是否生效。

参考