Skip to content

Latest commit

 

History

History
executable file
·
27 lines (22 loc) · 781 Bytes

README.md

File metadata and controls

executable file
·
27 lines (22 loc) · 781 Bytes

Be.Vlaanderen.Basisregisters.AspNetCore.Mvc.Middleware.AddRemoteIpAddress Build Status

Middleware component which adds a the remote IP id as a claim urn:be:vlaanderen:vbr:ip for the user on the request context.

The claim name is configurable as well.

Usage

public void Configure(IApplicationBuilder app, ...)
{
    app
        ...
        .UseMiddleware<AddRemoteIpAddressMiddleware>()
        ...
}
public void Configure(IApplicationBuilder app, ...)
{
    app
        ...
        .UseMiddleware<AddRemoteIpAddressMiddleware>("urn:custom-claim:ip")
        ...
}