EasyAuthentication 1.0.0
See the version list below for details.
dotnet add package EasyAuthentication --version 1.0.0
NuGet\Install-Package EasyAuthentication -Version 1.0.0
<PackageReference Include="EasyAuthentication" Version="1.0.0" />
<PackageVersion Include="EasyAuthentication" Version="1.0.0" />
<PackageReference Include="EasyAuthentication" />
paket add EasyAuthentication --version 1.0.0
#r "nuget: EasyAuthentication, 1.0.0"
#:package EasyAuthentication@1.0.0
#addin nuget:?package=EasyAuthentication&version=1.0.0
#tool nuget:?package=EasyAuthentication&version=1.0.0
About EasyAuthentication :
EasyAuthentication is the clean and realy clear authentication and authorization service. In this project I use Clean architecture and also use MediateR, FluentValidation, AutoMapper and JWT to implement this structure. Totally I developed it after some years of expriences and use a lots of diffrent authentication that we can use Mobile authentication and Email authentication.
How to use :
In the "Configurations" folder and IdentityServicesRegistration we have JwtSettings and IdentityConnectionString that they read from appsettings on your project like following codes:
"ConnectionStrings": {
"IdentityConnectionString": "Data Source= <DB_IP> ; User Id = <DB_USER> ; Password = <DB_PASSWORD> ; Initial Catalog= <DB_NAME> ;TrustServerCertificate=True"
},
"JwtSettings": {
"Key": "<YOUR_KEY>",
"Issuer": "<YOUR_ISSUER>",
"Audience": "<YOUR_AUDIENCE>",
"DurationInMinutes": 43200//for 30 days
},
Add this config to your program.cs
builder.Services.ConfigureIdentityServices(builder.Configuration);
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net7.0 is compatible. 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. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net7.0
- AutoMapper.Extensions.Microsoft.DependencyInjection (>= 12.0.1)
- FluentValidation.DependencyInjectionExtensions (>= 11.8.0)
- MediatR (>= 12.1.1)
- Microsoft.AspNetCore.Authentication.JwtBearer (>= 7.0.13)
- Microsoft.EntityFrameworkCore.SqlServer (>= 7.0.13)
- Microsoft.Extensions.Configuration.Abstractions (>= 7.0.0)
- RestSharp (>= 110.2.0)
- System.IdentityModel.Tokens.Jwt (>= 7.0.3)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.