Skip to content
This repository was archived by the owner on Dec 13, 2018. It is now read-only.

Commit 5485846

Browse files
committed
Update IdentityModel versions to latest, fix samples.
1 parent 72bf250 commit 5485846

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

build/dependencies.props

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
<PropertyGroup>
33
<AspNetCoreVersion>2.0.0-*</AspNetCoreVersion>
44
<CoreFxVersion>4.4.0-*</CoreFxVersion>
5-
<IdentityModelActiveDirectoryVersion>3.13.9</IdentityModelActiveDirectoryVersion>
6-
<IdentityModelOpenIdVersion>2.1.3</IdentityModelOpenIdVersion>
5+
<IdentityModelActiveDirectoryVersion>3.14.1</IdentityModelActiveDirectoryVersion>
6+
<IdentityModelOpenIdVersion>2.1.4</IdentityModelOpenIdVersion>
77
<InternalAspNetCoreSdkVersion>2.0.1-*</InternalAspNetCoreSdkVersion>
88
<JsonNetVersion>10.0.1</JsonNetVersion>
99
<NETStandardImplicitPackageVersion>2.0.0-*</NETStandardImplicitPackageVersion>

samples/OpenIdConnect.AzureAdSample/Startup.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,7 @@ public void ConfigureServices(IServiceCollection services)
4545
{
4646
services.AddAuthentication(sharedOptions =>
4747
{
48-
sharedOptions.DefaultAuthenticateScheme = CookieAuthenticationDefaults.AuthenticationScheme;
49-
sharedOptions.DefaultSignInScheme = CookieAuthenticationDefaults.AuthenticationScheme;
48+
sharedOptions.DefaultScheme = CookieAuthenticationDefaults.AuthenticationScheme;
5049
sharedOptions.DefaultChallengeScheme = OpenIdConnectDefaults.AuthenticationScheme;
5150
})
5251
.AddCookie()

samples/OpenIdConnectSample/Startup.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ await WriteHtmlAsync(context.Response, async res =>
147147
// Authenticated, but not authorized
148148
if (context.Request.Path.Equals("/restricted") && !user.Identities.Any(identity => identity.HasClaim("special", "true")))
149149
{
150-
await context.ChallengeAsync();
150+
await context.ForbidAsync();
151151
return;
152152
}
153153

0 commit comments

Comments
 (0)