Skip to content

linmasaki/AspNetCore.OAuth.Line

Repository files navigation

AspNetCore.OAuth.Line

Version Downloads .NET Core .NET

Description

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.

Usage

  1. Create a LINE Login channel and configure it for getting channel-id & secret.

  2. Add the AspNetCore.OAuth.Line package to your project.

dotnet add package AspNetCore.OAuth.Line
  1. Add using AspNet.Security.OAuth.Line at the top in your Startup class or others that you use the AddAuthentication method.

  2. 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";
        });
  1. Enjoy it!

Optional Settings

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

LINE Documentation

License

This project is licensed under the Apache License.

Note

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.

About

LINE OAuth authentication extension for ASP.NET Core(particularly made for version 3.1).

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published