Skip to content

emalfroy/remote-ipaddress-middleware

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

66 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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")
        ...
}

About

Middleware component which adds a the remote IP id as a claim for the user on the request context.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C# 55.0%
  • F# 39.0%
  • Shell 6.0%