Skip to main content

LINE

Follow these steps to add LINE as a social sign-in provider to your project using the Ory Console:

  1. Go to AuthenticationSocial Sign-In in the Ory Console.
  2. Click the switch next to the LINE logo to start the configuration.
  3. Copy the Redirect URI and save it for later use.

Next you will need to create a LINE application and configure it to work with Ory. Here's how you can do that:

  1. Head over to the LINE Business Account.
  2. Create a new channel in the Developer Console
  3. Configure the required permissions: PROFILE, OPENID_CONNECT, OC_EMAIL.
  4. On the LINE Login tab, configure the Callback URLs.
  5. On the channel page, you will find the Channel ID and Channel Secret. Copy these values and save them for later use.

LINE is now set up! Continue with the following steps in Ory Console or Ory CLI to complete the configuration:

  1. Copy the Channel ID and Channel Secret from the LINE Developer Console and paste them into the corresponding fields in the Ory Console.

  2. In the Data Mapping field of the form in the Ory Console, add the following Jsonnet code snippet, which maps the desired claims to the Ory Identity schema:

    local claims = std.extVar('claims');

    {
    identity: {
    traits: {
    [if 'email' in claims then 'email' else null]: claims.email,
    email: claims.email,
    [if "name" in claims then "first_name" else null]: claims.name,
    },
    },
    }
    danger

    Don't save secrets such as API keys, credentials, or personal data directly in Jsonnet code snippets. Jsonnet code snippets used for data mapping aren't stored in an encrypted format in Ory Network.

  3. Click Save Configuration.

Troubleshooting

When you add a social sign-in provider, you can encounter common problems such as:

  • Redirect URI mismatch
  • Redirect loops during registration
  • Domain verification issues

To troubleshoot those issues, read Social sign-in troubleshooting.