In order to set up LINE authentication, you need to register an application on the LINE Developer Console. This can be done from the LINE Developers website.
Registering an application¶
Go to https://developers.line.biz/console/ and log in with your LINE account.
Click on Create new provider.
Enter a provider name (your own name, or that of your organization).
Create a new channel under your provider, and select LINE Login as the channel type.
Give your application a name and description.
You should choose a name that reflects the community you have set up FreeField for. A good idea is to use the name of your community, or a location-specific name such as “New York FreeField.” You may optionally upload an icon for your application, which will be displayed when users attempt to authenticate.
Select “Use WEB” as the app type. Enter your email address and create the channel.
In your application’s settings, take note of the “Channel ID” and “Channel secret” assigned to your application:
- On the same page, look for and go to the “App settings” tab.
- Under “Callback URL”, click Edit and paste the redirect URL for
FreeField’s implementation of OAuth2 with LINE. This URL is
auth/oa2/line.php, relative to your installation path. E.g. if you have installed FreeField to
https://example.com/freefield/, the redirect URL would be
Enabling LINE authentication in FreeField¶
After you have registered an application on LINE, you can configure FreeField to use LINE for authentication.
- In the FreeField administration pages, navigate to the “Authentication” menu.
- In the LINE section, check the box next to “Enable LINE authentication” and paste the channel ID and secret you got from LINE in the relevant fields.
- Save the setting using “Save settings” at the bottom of the page.
When users authenticate with FreeField through Discord, they will see an authentication prompt similar to this: