Russian localization for IdentityErrorDescriber (Microsoft.AspNetCore.Identity) for .net 5. Contains both IdentityErrorDescriber and IdentityBuilderExtension to register the Describer. For multilanguage support based on HTTP headers consider using PiotrTrojan.AspNetCore.IdentityErrorLocalization.Multilang nuget with proper factory.
Sidio.Web.Security.AspNetCore provides services and middleware to secure ASP.NET Core applications.
Implementation of Http correlation handler to forward CorrelationId. Based on the primary Http header `X-Correlation-ID` as well as the alternative Http header `X-Request-ID`.
This package is part of the Nano Library, a set of reusable .NET libraries for building microservice applications. Nano addresses common non-business concerns such as logging, persistence, messaging, validation, and documentation, while remaining fully configurable and extensible, so applications can stay focused on business logic. See https://github.com/Nano-Core/Nano.Library for details.
Proxy information consumer for ASP.Net. Reads X-Forwarded-For and X-Forwarded-Proto headers from trusted proxies, and replaces the client ip with this information.
A simple middleware for ASP.NET Core 2+ to add the Content-Security-Policy http header.
This package configures networking for http requests. It offers a HttpClientFactory that create HttpClients with AccessToken added as an Authorization Bearer header obtained from an UserPrincipal retrieved from HttpContext.
Winnovative PDF Chromium for .NET on Linux converts HTML to PDF, HTML to Image and Word DOCX to PDF. Supports .NET Standard, .NET Core and .NET Framework. Compatible with Linux 64-bit and Docker. The HTML to PDF converter component of the library uses a rendering engine based on Chromium, which can render all modern HTML, CSS and JavaScript content in conformance with the latest standards. The .NET library in this package targets .NET Standard 2.0 and can be used in any .NET Core or .NET Framework application compatible with this standard. The native runtime is compatible with Linux 64-bit platforms. This package is fully compatible with Azure App Service and Azure Functions applications for the Linux platform. There is also a separate similar package for Windows platforms containing the same .NET library but with a different native Chromium runtime. The compatibility list of this package includes the following platforms: * Linux 64-bit Distributions * .NET Core 9.0, 8.0, 7.0, 6.0, 5.0, .NET Standard 2.0 * Azure App Service and Azure Functions for Linux * Azure Linux Virtual Machines * Web, Console, Desktop applications, Docker Main Features: * Convert HTML with CSS, Web Fonts and JavaScript to PDF * Support modern web standards and technologies * Add page numbering in PDF headers and footers from HTML * Repeat HTML table headers and footers in PDF pages * Control PDF page breaks with CSS in HTML * Create outlines and tables of contents from heading tags * Convert specific HTML regions * Retrieve HTML element positions in the PDF * Create tagged PDFs for accessibility * Trigger conversion automatically or manually * Render for screen or print media types * Set PDF security, viewer settings and signatures * Set HTTP headers and cookies * Use GET and POST requests * Convert HTML to JPEG, PNG and WEBP images * Convert Word DOCX to PDF
This package is part of the Nano Library, a set of reusable .NET libraries for building microservice applications. Nano addresses common non-business concerns such as logging, persistence, messaging, validation, and documentation, while remaining fully configurable and extensible, so applications can stay focused on business logic. See https://github.com/Nano-Core/Nano.Library for details.
Sidio.Web.Testing provides testing functionality that can be used to verify that the security headers are set correctly.
Advanced HTTP traffic monitoring middleware for ASP.NET Core applications. Features configurable logging fields, path-based filtering, customizable header logging, high performance with minimal overhead, and comprehensive request/response monitoring capabilities.
This package is part of the Nano Library, a set of reusable .NET libraries for building microservice applications. Nano addresses common non-business concerns such as logging, persistence, messaging, validation, and documentation, while remaining fully configurable and extensible, so applications can stay focused on business logic. See https://github.com/Nano-Core/Nano.Library for details.
A .NET Core middleware for injecting the Owasp recommended HTTP Headers into Azure Isolated Functions
This package implements a HttpClient with custom HTTP header authentication.
Middleware used to add an HTTP Strict Transport Security header to ASP.NET Core responses. See https://tools.ietf.org/html/rfc6797
German localization for IdentityErrorDescriber (Microsoft.AspNetCore.Identity) for .net 5. Contains both IdentityErrorDescriber and IdentityBuilderExtension to register the Describer. For multilanguage support based on HTTP headers consider using PiotrTrojan.AspNetCore.IdentityErrorLocalization.Multilang nuget with proper factory.
WebApi.HttpOptions adds automatic handling for the HTTP OPTIONS verb and the Allow header.
This package is part of the Nano Library, a set of reusable .NET libraries for building microservice applications. Nano addresses common non-business concerns such as logging, persistence, messaging, validation, and documentation, while remaining fully configurable and extensible, so applications can stay focused on business logic. See https://github.com/Nano-Core/Nano.Library for details.
IISFrontGuard is an IIS HTTP Module providing comprehensive web application security including WAF functionality, rate limiting, geographic IP filtering, security event logging, automatic security header management, and webhook notifications for ASP.NET applications running on .NET Framework 4.8. Automatically removes server identification headers (X-Powered-By, Server) and adds essential security headers (CSP, HSTS, X-Frame-Options, etc.).
Portuguese localization for IdentityErrorDescriber (Microsoft.AspNetCore.Identity) for .net 5. Contains both IdentityErrorDescriber and IdentityBuilderExtension to register the Describer. For multilanguage support based on HTTP headers consider using PiotrTrojan.AspNetCore.IdentityErrorLocalization.Multilang nuget with proper factory.
Loads Semver informations from JSON configuration file for ASP.NET Core, and exposes it through a HTTP header and a tag helper.
A free to use library as a download manager. Includes retry, priority, cancel, etc.. function. Features: • StatusRequest: Calls a Head request and returns a response message with the headers. • SiteRequest: Scans a website for all references. • GetRequest: To download the response into a file. • LoadRequest: Extends GetRequest with chunked download.
HTTP/REST testing extensions for XUnitAssured. Provides fluent DSL for testing REST APIs with support for HTTP methods, headers, authentication (OAuth2, Bearer, Basic, Certificate), and response validation. v4.0: Added HttpValidationBuilder and BDD extensions (consolidated from XUnitAssured.Extensions). v5.0: Added .NET 10 support.
原生Socket实现用于TCP监听 TCPServer监听 UDP监听 HTTP 监听 1.2.0 增加Json/form-data数据直接转为实体对象给目标函数 路由标签使用方法时 方法所在类必须继承HttpRequest基类 1.2.5+ 增加对Task异步支持 更改 超过65535字节接收不了的问题 1.2.7 优化HTTP接收json时转换实体对象问题 1.2.8 解决formdata数据时解析字符串问题 1.2.10 优化异步数据接收 解决并发时数据接收不全的问题 1.2.11 增加无返回类型函数中通过this.Connection.send返回数据给客户端的功能 2.0.1 UDPServer中增加ClientSend方法 更改调用方式 2.0.2 允许使用 255.255.255.255 对某个端口进行广播 2.0.3 解决接收数据容易出现的已知问题 2.0.5 解决发送数据容易出现的已知问题 使用方式: ``` //TCP监听 var listener = TCPServer.Create(2020); listener.StartListen(s => { s.OnConnection = e => Console.WriteLine($@"OnConnection:{e.RemoteEndPoint}"); s.OnReceived = (e, data) => { Random random = new Random(); int randomNum = random.Next(0, 1000000); s.Send(Encoding.UTF8.GetBytes($@"ok>{s.RemoteEndPoint.ToString()}>>{randomNum}")); Console.WriteLine($@"OnData:{e.RemoteEndPoint},data:{Encoding.UTF8.GetString(data)}"); }; s.OnClosed = e => Console.WriteLine($@"OnClosed:{e.RemoteEndPoint}"); s.OnError = (conn, str, e) => Console.WriteLine($@"{conn.OnConnection} {str}:{e.Message}"); }); //UDP监听 var UDPlistener = UDPServer.Create(2020); UDPlistener.StartListen(s => { s.OnReceived = (e, data) => { Random random = new Random(); int randomNum = random.Next(0, 1000000); s.Send(s.RemoteEndPoint,Encoding.UTF8.GetBytes($@"ok>{s.RemoteEndPoint.ToString()}>>{randomNum}")); Console.WriteLine($@"UDP OnData:{e.RemoteEndPoint},data:{Encoding.UTF8.GetString(data)}"); }; s.OnError = (conn, str, e) => Console.WriteLine($@"{conn.RemoteEndPoint.ToString} {str}:{e.Message}"); }); //HTTP监听 var httplistener = HTTPServer.Create(2021); httplistener.SetPath(MethodEnum.GET, "/start"); httplistener.SetPath(MethodEnum.POST, "/start"); httplistener.StartListen(s => { //s.OnConnection = e => Console.WriteLine($@"OnConnection:{e.RemoteEndPoint}"); s.OnReceived = (e, Req) => { Random random = new Random(); int randomNum = random.Next(0, 1000000); s.Send($@"ok>{s.RemoteEndPoint.ToString()}>>{randomNum}"); Console.WriteLine($@"OnData:{e.RemoteEndPoint},data:{Req.Body}"); }; }); //HTTP监听路由写法: public class Workers : HTTPRequest { [Router("/start1", MethodEnum.GET)] public string Tests(string UserAccount, int Password) { Console.WriteLine("Body+>"+Content); return (new { code = 200, msg = "ok" }).ObjectToJson(); } [Router("/start1", MethodEnum.POST)] public object Tests2(string asd,List<int> aas) { foreach (var item in Headers) { Console.WriteLine(item.Key+":"+item.Value); } return new { code = 200, msg = "ok" }; } [Router("/start2", MethodEnum.POST)] public object Tests3(Testss testss) { foreach (var item in Headers) { Console.WriteLine(item.Key + ":" + item.Value); } return new { code = 200, msg = "ok" }; } } public class Testss { public string? UserAccount { get; set; } public string? Password { get; set; } } ```
Resources Over MVC (ROM) provides a set of attributes and extensions to allow you to simply introduce RESTful features to an existing web site or create a REST based web service from scratch, on top of the familiar ASP.Net MVC. ROM is not meant to be prescriptive about what constitutes a RESTful web service; there are plenty of opinions out on the web regarding that matter! In fact it was deliberately not called "Rest Over MVC" to avoid the assumption that using this assembly would magically mean your web service was RESTful. For that you will need to do some reading around, design your resources and decide what you think constitutes a RESTful web service. Hopefully you'll find that the set of helper attributes and extensions in this assembly are not too opinionated, but you should be able to use them to provide the following features: - Serve and receive multiple representations of resources (e.g. XML and JSON) - Support different encodings - Support a constrained number of methods - Allow representations to include hyper links - Overload the POST method Obviously, as this approach is based on ASP.Net, it is providing a web service over the HTTP protocol, so it does make use of standard: - HTTP headers - HTTP methods - HTTP status codes If you want to look into some of the history of the code I described the initial development on the Shoulders of Giants blog.
3.0.0 - Depends on Carbon.MassTransit [3.11.0,4.0.0) and MassTransit [7.3.1,8.0.0) (MassTransit 7) as package references, so services on MassTransit 7 can use Carbon.WebApplication 6.x. Services on MassTransit 8 should stay on Carbon.Audit 2.0.0; they get NU1608 at restore, and with "CarbonAudit:Enabled" true AddCarbonAudit throws an InvalidOperationException naming the mismatch. - A direct reference to Carbon.Audit 2.0.0 or to Carbon.MassTransit below 3.11.0 becomes an NU1605 downgrade error; raise it (Carbon.MassTransit 3.11.0) or remove it. 2.0.0 - MassTransit upgraded to 8.5.8 together with Carbon.MassTransit 4.0.0 (BREAKING: MassTransit 8). 1.5.0 - DbContextOptionsBuilder.AddCarbonAuditInterceptor(serviceProvider) added. - AuditInterceptor no longer collects events for saves outside an HTTP request (seeding, Quartz jobs, consumers); those were never published. - AuditInterceptor also intercepts synchronous SaveChanges(). - RequestContext and AuditInterceptor are always registered; the interceptor is inert when disabled. - CarbonAuditSettings bound from "CarbonAudit"; UseCarbonAudit() is a no-op when disabled. - The audit bus and IAuditEventPublisher are registered only when enabled. 1.4.0 - .NET 10 (net10.0) target framework added. 1.3.0 - ApiStatusCode, ErrorCode, Messages and DurationMs added to audit events; HttpStatusCodeFilter added. 1.2.0 - Carbon.MassTransit dependency and Carbon.Audit's own MassTransit implementation added. 1.1.1 - Token header treated as sensitive and redacted. 1.1.0 - Dedicated HTTP request audit event publishing added. 1.0.2 - TransactionId accepted as CorrelationId fallback; FailedRequest event (AuditAction.FailedRequest = 3) for HTTP >= 400 without DB changes; events emitted for every outcome; HttpStatusCode added. 1.0.1 - Advanced audit filtering options added. 1.0.0 - Initial release. RequestContextMiddleware, AuditInterceptor and audit constants added.
Library for adding security related HTTP headers using middleware.
This package is part of the Nano Library, a set of reusable .NET libraries for building microservice applications. Nano addresses common non-business concerns such as logging, persistence, messaging, validation, and documentation, while remaining fully configurable and extensible, so applications can stay focused on business logic. See https://github.com/Nano-Core/Nano.Library for details.
Exira.CsrfValidation.Owin is an OWIN middleware to prevent CSRF attacks by validating HTTP Headers and Cookies
Kun Framework multi-tenancy: ITenantResolver (JWT claim / HTTP header / fallback), AsyncLocal-backed ITenantContext, and the UseKunMultiTenancy middleware that scopes tenant identity across the request pipeline. EF Core query-filter + SaveChanges interceptor live in Kun.MultiTenancy.EntityFrameworkCore.
OpenAI chat-completions-shape provider for Themia.AI's IAiCompletionProvider. One implementation reaches OpenAI, Ollama, Groq, Cerebras, LM Studio and vLLM by changing BaseUrl. Maps finish_reason and HTTP status onto AiOutcome, reads usage on every response that carries it, and sends the API key as an Authorization: Bearer header.
This package is part of the Nano Library, a set of reusable .NET libraries for building microservice applications. Nano addresses common non-business concerns such as logging, persistence, messaging, validation, and documentation, while remaining fully configurable and extensible, so applications can stay focused on business logic. See https://github.com/Nano-Core/Nano.Library for details.
Google Gemini provider for Themia.AI's IAiCompletionProvider. Maps Gemini's finishReason and HTTP status onto AiOutcome, reads usageMetadata on every response that carries it, and sends the API key as an x-goog-api-key header rather than a query parameter, so it is never part of a request URI; IHttpClientFactory's default request logging is suppressed for this client as defence in depth.
AspNetCoreNotAcceptable is an ASP.NET Core solution which requires all http requests to have the 'Accept' header set to 'application/json'.
A small package for ASP.Net (Core) to automatically configure secure HTTP-Headers.
JSVaporizer is a lightweight .NET WASM framework for building C#-based UI components, offering direct DOM access, Handlebars templates, and a simple event model. It avoids the overhead of bigger frameworks, giving you typed wrappers for the DOM and full control in .NET.
This package is part of the Nano Library, a set of reusable .NET libraries for building microservice applications. Nano addresses common non-business concerns such as logging, persistence, messaging, validation, and documentation, while remaining fully configurable and extensible, so applications can stay focused on business logic. See https://github.com/Nano-Core/Nano.Library for details.
Polish localization for IdentityErrorDescriber (Microsoft.AspNetCore.Identity) for .net 5. Contains both IdentityErrorDescriber and IdentityBuilderExtension to register the Describer. For multilanguage support based on HTTP headers consider using PiotrTrojan.AspNetCore.IdentityErrorLocalization.Multilang nuget with proper factory.
Lib.AspNetCore.ClientHints is a library which provides support to ASP.NET Core for set of HTTP request header fields, colloquially known as Client Hints, which allow user agents to indicate device and agent specific preferences.
This package is part of the Nano Library, a set of reusable .NET libraries for building microservice applications. Nano addresses common non-business concerns such as logging, persistence, messaging, validation, and documentation, while remaining fully configurable and extensible, so applications can stay focused on business logic. See https://github.com/Nano-Core/Nano.Library for details.
This package is part of the Nano Library, a set of reusable .NET libraries for building microservice applications. Nano addresses common non-business concerns such as logging, persistence, messaging, validation, and documentation, while remaining fully configurable and extensible, so applications can stay focused on business logic. See https://github.com/Nano-Core/Nano.Library for details.
French localization for IdentityErrorDescriber (Microsoft.AspNetCore.Identity) for .net 5. Contains both IdentityErrorDescriber and IdentityBuilderExtension to register the Describer. For multilanguage support based on HTTP headers consider using PiotrTrojan.AspNetCore.IdentityErrorLocalization.Multilang nuget with proper factory.
This package is part of the Nano Library, a set of reusable .NET libraries for building microservice applications. Nano addresses common non-business concerns such as logging, persistence, messaging, validation, and documentation, while remaining fully configurable and extensible, so applications can stay focused on business logic. See https://github.com/Nano-Core/Nano.Library for details.
Localizations for IdentityErrorDescriber (Microsoft.AspNetCore.Identity) for .net 5. Resolved describer is based on "accept-language" HTTP request header. Contains localizations French, German, Persian, Polish, Portuguese, Portuguese-BR, Russian, Spanish and Turkish. Contains Extensions to register proper Factory and Describer.
This package is part of the Nano Library, a set of reusable .NET libraries for building microservice applications. Nano addresses common non-business concerns such as logging, persistence, messaging, validation, and documentation, while remaining fully configurable and extensible, so applications can stay focused on business logic. See https://github.com/Nano-Core/Nano.Library for details.
This package is part of the Nano Library, a set of reusable .NET libraries for building microservice applications. Nano addresses common non-business concerns such as logging, persistence, messaging, validation, and documentation, while remaining fully configurable and extensible, so applications can stay focused on business logic. See https://github.com/Nano-Core/Nano.Library for details.