Skip to content
Prev Previous commit
Next Next commit
Update code snippet
Update example code snippet for ASP.NET Core 2.2.
  • Loading branch information
martincostello committed May 25, 2019
commit 91b5060b0c76374ad6e3b97197ea47f95f9d0e29
19 changes: 12 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,18 @@
```csharp
public void ConfigureServices(IServiceCollection services)
{
services.AddAuthentication()
.UseSteam()
.UseOpenId("StackExchange", "StackExchange", options =>
{
options.Authority = new Uri("https://openid.stackexchange.com/");
options.CallbackPath = "/signin-stackexchange";
});
services.AddAuthentication(options => { /* Authentication options */ })
.UseSteam()
.UseOpenId("StackExchange", "StackExchange", options =>
{
options.Authority = new Uri("https://openid.stackexchange.com/");
options.CallbackPath = "/signin-stackexchange";
});
}

public void Configure(IApplicationBuilder app)
{
app.UseAuthentication();
}
```

Expand Down