Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
rschacherl authored Dec 26, 2020
1 parent fbacdc4 commit f84a6dc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ Provides an [`AuthenticationHandler`](https://docs.microsoft.com/en-us/dotnet/ap
Enable Basic authentication in `Startup.cs` in the `ConfigureServices` method:

```csharp
services.AddTransient<IBasicAuthenticationProvider>(_ => new MemoryBasicAuthenticationProvider(authenticatedApps));
services.AddTransient<IBasicAuthorizationProvider>(_ => new MemoryBasicAuthenticationProvider(authenticatedApps));

services
.AddAuthentication(o =>
Expand All @@ -164,4 +164,4 @@ Make sure, that you don't create new `HttpClient` instances for every request (s

```csharp
new HttpClient(new BasicAuthenticationDelegatingHandler(username, password));
```
```

0 comments on commit f84a6dc

Please sign in to comment.