AspNetCore.OAuth.Line 1.0.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package AspNetCore.OAuth.Line --version 1.0.0                
NuGet\Install-Package AspNetCore.OAuth.Line -Version 1.0.0                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="AspNetCore.OAuth.Line" Version="1.0.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add AspNetCore.OAuth.Line --version 1.0.0                
#r "nuget: AspNetCore.OAuth.Line, 1.0.0"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install AspNetCore.OAuth.Line as a Cake Addin
#addin nuget:?package=AspNetCore.OAuth.Line&version=1.0.0

// Install AspNetCore.OAuth.Line as a Cake Tool
#tool nuget:?package=AspNetCore.OAuth.Line&version=1.0.0                

Description

AspNetCore.OAuth.Line is a LINE authentication security middleware that you can use in your ASP.NET Core application(specially made for version 3.1).

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.

Product Compatible and additional computed target framework versions.
.NET net5.0 is compatible.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
.NET Core netcoreapp3.1 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • .NETCoreApp 3.1

    • No dependencies.
  • net5.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.1 723 7/14/2021
1.0.0 393 7/12/2021

None