Levge.Notification
1.0.0
dotnet add package Levge.Notification --version 1.0.0
NuGet\Install-Package Levge.Notification -Version 1.0.0
<PackageReference Include="Levge.Notification" Version="1.0.0" />
<PackageVersion Include="Levge.Notification" Version="1.0.0" />
<PackageReference Include="Levge.Notification" />
paket add Levge.Notification --version 1.0.0
#r "nuget: Levge.Notification, 1.0.0"
#:package Levge.Notification@1.0.0
#addin nuget:?package=Levge.Notification&version=1.0.0
#tool nuget:?package=Levge.Notification&version=1.0.0
<img src="src/Levge.Identity/icon.png" width="100" height="100" alt="Levge.Identity logo" />
Levge.Identity
Levge.Identity, .NET 8 ve .NET 9 uygulamalar� i�in JWT deste�i, parola karma, kod �retimi ve geni�letilebilir kullan�c� ba�lam� ile kimlik ve kimlik do�rulama hizmetleri sa�layan bir k�t�phanedir. E-posta bildirim yeteneklerini de i�erir.
�zellikler
- ? JWT tabanl� kimlik do�rulama ve yetkilendirme
- ? G��l� parola karma (PBKDF2)
- ?
ICurrentUser<T>ile kullan�c� ba�lam� ve taleplere (claims) eri�im - ? G�venli kod ve parola olu�turma ara�lar�
- ? Geni�letilebilir kimlik sa�lay�c� modeli
- ? ASP.NET Core DI ile kolay entegrasyon
Kurulum
.NET CLI
dotnet add package Levge.Identity
Paket Y�neticisi
Install-Package Levge.Identity
Yap�land�rma
Program.cs i�erisine yap�land�rmay� ekleyin:
Varsay�lan kullan�m:
builder.Services.AddLevgeIdentity<string>(builder.Configuration);Veya �zel yap�land�rma nesnesi ile:
var identityConfig = new IdentityConfig { Jwt = new JwtConfig { Issuer = "your-issuer", Audience = "your-audience", Secret = "your-secret-key", // ...di�er se�enekler } }; builder.Services.AddIdentity<LevgeIdentityProvider, string>(identityConfig);Mevcut kullan�c�ya eri�im DI �zerinden:
public class MyController : ControllerBase { private readonly ICurrentUser<string> _currentUser; public MyController(ICurrentUser<string> currentUser) { _currentUser = currentUser; } // ... }
Kullan�m
- JWT Token �retimi:
Eri�im/yenileme belirteci (token) �retimi i�in
IJwtTokenServicekullan�n. - Parola Karma (Hashing):
G�venli parola saklama i�in
IPasswordHasherkullan�n. - Kod �retimi:
Say�sal, alfanumerik veya kapsaml� kodlar i�in
ICodeGeneratorkullan�n. - Kullan�c� Bilgisine Eri�im:
Kullan�c� kimli�i, e-posta, rol, talepler vb. almak i�in
ICurrentUser<TKey>kullan�n.
var token = jwtTokenService.GenerateAccessToken(claims);
var passwordHash = passwordHasher.Hash("myPassword");
var code = codeGenerator.GenerateNumericCode();
if (!_currentUser.IsAuthenticated)
throw new LevgeException("Not authenticated");
Yap�land�rma Se�enekleri
| Se�enek | A��klama |
|---|---|
Issuer |
JWT belirteci yay�nc�s� |
Audience |
JWT belirteci izleyicisi |
Authority |
Do�rulama i�in yetkili otorite |
Secret |
JWT imzalamak i�in gizli anahtar |
AccessTokenExpirationMinutes |
Eri�im belirteci ge�erlilik s�resi (dakika) |
RefreshTokenExpirationMinutes |
Yenileme belirteci ge�erlilik s�resi (dakika) |
EnableRefreshTokens |
Yenileme belirte�lerini etkinle�tir |
ValidateIssuer |
Yay�nc�y� do�rula |
ValidateAudience |
�zleyiciyi do�rula |
ValidateLifetime |
Kullan�m �mr�n� do�rula |
ValidateSigningKey |
�mza anahtar�n� do�rula |
AuthScheme |
Kimlik do�rulama �emas� (varsay�lan: Bearer) |
DefaultScheme |
Varsay�lan kimlik do�rulama �emas� |
Lisans
MIT Lisans�. Detaylar i�in LICENSE dosyas�na bak�n.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. 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 is compatible. 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. |
-
net8.0
- No dependencies.
-
net9.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.0 | 95 | 1/23/2026 |