Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
mo-esmp committed Nov 8, 2023
2 parents a33a678 + cf2da35 commit e139e5a
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,21 +86,6 @@ public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
}
```

## Basic Authentication

If you need to add basic authentication to your serilog-ui instance, you can use the `BasicAuthenticationFilter`. Here's how to configure it in your `Startup.Configure` method:

```csharp
app.UseSerilogUi(options =>
{
options.Authorization.Filters = new IUiAuthorizationFilter[]
{
new BasicAuthenticationFilter { User = "User", Pass = "P@ss" }
};
options.Authorization.RunAuthorizationFilterOnAppRoutes = true;
});
```

### For further configuration: [:fast_forward:](https://github.com/serilog-contrib/serilog-ui/wiki/Install:-Configuration-Options)

## Running the Tests: [:test_tube:](https://github.com/serilog-contrib/serilog-ui/wiki/Development:-Testing)
Expand Down

0 comments on commit e139e5a

Please sign in to comment.