Levge.Notification 1.0.0

dotnet add package Levge.Notification --version 1.0.0
                    
NuGet\Install-Package Levge.Notification -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="Levge.Notification" Version="1.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Levge.Notification" Version="1.0.0" />
                    
Directory.Packages.props
<PackageReference Include="Levge.Notification" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Levge.Notification --version 1.0.0
                    
#r "nuget: Levge.Notification, 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.
#:package Levge.Notification@1.0.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Levge.Notification&version=1.0.0
                    
Install as a Cake Addin
#tool nuget:?package=Levge.Notification&version=1.0.0
                    
Install as a Cake Tool

<img src="src/Levge.Identity/icon.png" width="100" height="100" alt="Levge.Identity logo" />

Levge.Identity

NuGet Build


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

  1. 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);
    
  2. 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 IJwtTokenService kullan�n.
  • Parola Karma (Hashing): G�venli parola saklama i�in IPasswordHasher kullan�n.
  • Kod �retimi: Say�sal, alfanumerik veya kapsaml� kodlar i�in ICodeGenerator kullan�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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • 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