{"repo":"marcominerva/SimpleAuthentication","free":true,"listed":false,"github":"https://github.com/marcominerva/SimpleAuthentication","clone":"git clone https://github.com/marcominerva/SimpleAuthentication.git","description":"A library to easily integrate Authentication in ASP.NET Core projects.","language":"C#","stars":252,"topics":["aspnetcore","authentication","authorization","hacktoberfest","jwt","jwt-authentication","basic-authentication","apikey","apikey-authentication","minimal-api"],"license":"MIT","category":"auth-billing-email","readme_excerpt":"Simple Authentication for ASP.NET Core A library to easily integrate Authentication in ASP.NET Core projects. Currently it supports JWT Bearer, API Key and Basic Authentication in both Controller-based and Minimal API projects. [!IMPORTANT] Update from Version 2.x to 3.x Swashbuckle (Swagger) support has been moved out from SimpleAuthentication. If you're using the AddSimpleAuthentication extension method with AddSwaggerGen , now you need to install the SimpleAuthentication.Swashbuckle package. Installation The library is available on NuGet. Search for SimpleAuthenticationTools in the Package Manager GUI or run the following command in the .NET CLI : Usage video Take a look at a quick demo showing how to integrate the library: Configuration Authentication can be fully configured adding an Authentication section in the appsettings.json file: You can configure only the kind of authentication you want to use, or you can include all of them. The DefaultScheme attribute is used to specify what kind of authentication must be configured as default. Allowed values are the values of the SchemeName attributes. Registering authentication at Startup Integrating with Swashbuckle If you're using Swashbuckle (Swagger) to document your API, you can integrate the authentication configuration with the Swagger documentation. Search for SimpleAuthenticationTools.Swashbuckle in the Package Manager GUI or run the following command in the .NET CLI : Then, you can use the AddSimpleAuthentication ext","default_branch":null,"files":null,"tree":[],"storefront":"/r/marcominerva","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/marcominerva/SimpleAuthentication/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}