AspNetCore.OAuth.Line
1.0.0
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
<PackageReference Include="AspNetCore.OAuth.Line" Version="1.0.0" />
paket add AspNetCore.OAuth.Line --version 1.0.0
#r "nuget: AspNetCore.OAuth.Line, 1.0.0"
// 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
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!
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 | Versions 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. |
-
.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.
None