原文博客地址:https://zepo.re/archives/line-login-acess
Web应用接入Line登录
台湾省的客户要求在原App的基础上接入Line登录,接入第三方登录的需求工作至今是第一次遇到(毕竟现在手上负责的两个项目都是维护阶段),好在除了登录之后业务的处理之外,登录问题顺利解决了。
接到需求的我第一时间找的是现成的技术分享,但好像比较少,最终我还是选择一点点啃官方的纯英文文档:https://developers.line.biz/en/docs/line-login/getting-started/和https://developers.line.biz/en/docs/line-login/integrate-line-login/
博主身在内地,所以这篇博文,是博主在内地接入Line的文档实践。
开始之前
开始之前有些特殊的名字术语解释如下,我就不翻译了,尽可能保持原汁原味:
Requirement | Description |
---|---|
LINE account | An account for the LINE app. You need a LINE account to try out the starter app. To create a LINE account, download (opens new window)LINE for iOS or LINE for Android and sign up. For more information about creating a new LINE account, see Create a new account (opens new window)(only available in Japanese) in the LINE user’s guide. |
Provider | Provider is a concept that describes the person or organization that provides the application. Create a provider on the LINE Developers Console. A LINE user has a different user ID for each provider. |
LINE Login channel | A channel forms the connection between your app and the LINE Platform. Create a channel within the provider. You need to create a channel for each app. Create a LINE Login channel on the LINE Developers Console. Notes: - If you’ve never logged in to the LINE Developers Console, you’ll be asked to register as a developer first. – The steps for creating your LINE Login channel are explained in Step 1: Create your LINE Login channel. - When creating a LINE Login channel to use a starter app, makes sure you select Web app under App types. |
Heroku account |