AspNetCore.OAuth.Line is a LINE authentication security middleware that you can use in your ASP.NET Core application. It is a reference to Aspnet-Contrib's AspNet.Security.OAuth.Line to support version 3.1 mainly.
-
Create a LINE Login channel and configure it for getting channel-id & secret.
-
Add the AspNetCore.OAuth.Line package to your project.
dotnet add package AspNetCore.OAuth.Line
-
Add
using AspNet.Security.OAuth.Line
at the top in yourStartup
class or others that you use theAddAuthentication
method. -
Call AddLine() method of AuthenticationBuilder and configure it like this
services.AddAuthentication(options => /* Auth configuration */)
.AddLine(options =>
{
options.ClientId = "my-channel-id";
options.ClientSecret = "my-channel-secret";
});
- Enjoy it!
Property Name | Property Type | Description | Default Value |
---|---|---|---|
Prompt |
bool |
Used to force the consent screen to be displayed even if the user has already granted all requested permissions. | false |
UserEmailsEndpoint |
string |
The address of the endpoint exposing the email addresses associated with the logged in user. | LineAuthenticationDefaults.UserEmailsEndpoint |
This project is licensed under the Apache License.
AspNetCore.OAuth.Line is specifically aimed at the version of the .NET Core 3.1 Application. Although it also supports version .NET 5, it is recommended that you use Aspnet-Contrib's AspNet.Security.OAuth.Line instead If your application is above .NET 5.