Ecosyste.ms: Packages

An open API service providing package, version and dependency metadata of many open source software ecosystems and registries.

nuget.org : zaextensions.zaauth

ZAExtensions.ZAAuth is a extension of for create a simple authenticate cookie in WepApis.'s projects. In your appsetting you need add this code: "ZToken": "[YourTokenName] In your startup.cs you need add this code: // Http cookies and auth services.AddHttpContextAccessor(); services.AddScoped<IZTokens, ZTokens>(); services.AddAuthentication(za => { za.DefaultScheme = CookieAuthenticationDefaults.AuthenticationScheme; za.DefaultAuthenticateScheme = CookieAuthenticationDefaults.AuthenticationScheme; }).AddCookie(za => { za.Cookie.Name = [YourTokenName]; za.Cookie.HttpOnly = false; za.Cookie.SameSite = SameSiteMode.Unspecified; }); app.UseCors( options => options.AllowAnyHeader() .AllowAnyMethod() .AllowAnyOrigin() );

Registry - JSON
purl: pkg:nuget/zaextensions.zaauth
License:
Latest release: 10 months ago
First release: about 3 years ago
Downloads: 2,523 total
Last synced: 13 days ago

    Loading...
    Readme
    Loading...