Connect Apps to LINE
The LINE social connection allows users to log in to your application using their LINE profile.
By default, Auth0 automatically syncs user profile data with each user login, thereby ensuring that changes made in the connection source are automatically updated in Auth0. Optionally, you can disable user profile data synchronization to allow for updating profile attributes from your application.
Prerequisites
Before you begin:
- Sign up for a LINE account.
- Register your LINE account as a Developer. If you've never logged in to the LINE Developer console before, do so; you'll automatically be asked to register as a developer and link your account.
Steps
To connect your app to LINE, you will:
Set up channel in LINE
Set up a provider and channel using LINE's Create a Channel documentation, then apply for email permissions using LINE'S Integrating LINE Login with your web app: Applying for email permission section. During this process, LINE will generate a Channel ID and Channel Secret for your application; make note of these.
While setting up your channel, use the following values:
Field | Value to Provide |
---|---|
Application type | Enable Web app. |
Callback URL | https://YOUR_DOMAIN/login/callback |
Find your Auth0 domain name
If your Auth0 domain name is not shown above and you are not using our custom domains feature, your domain name is your tenant name, your regional subdomain (unless your tenant is in the US region and was created before June 2020), plus.auth0.com
. For example, if your tenant name were exampleco-enterprises
, your Auth0 domain name would be exampleco-enterprises.us.auth0.com
and your callback URL would be https://exampleco-enterprises.us.auth0.com/login/callback
. (If your tenant is in the US and was created before June 2020, then your domain name would be https://exampleco-enterprises.auth0.com
.)
If you are using custom domains, your redirect URI will have the following format: https://<YOUR CUSTOM DOMAIN>/login/callback
.
Create and enable connection in Auth0
Set up the LINE social connection in Auth0. Make sure you have the generated Channel ID and Channel Secret.
Test connection
You're ready to test your connection.