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

Commit 7dd09ff

Browse files
committed
Update the Data Protection purposes to ensure that access tokens issued by the RTM ASOS package can be read
1 parent 3890613 commit 7dd09ff

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

src/AspNet.Security.OAuth.Introspection/OAuthIntrospectionMiddleware.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public OAuthIntrospectionMiddleware(
5454
if (Options.AccessTokenFormat == null)
5555
{
5656
var protector = Options.DataProtectionProvider.CreateProtector(
57-
nameof(OAuthIntrospectionMiddleware),
57+
nameof(OAuthIntrospectionHandler),
5858
nameof(Options.AccessTokenFormat), Options.AuthenticationScheme);
5959

6060
Options.AccessTokenFormat = new TicketDataFormat(protector);

src/AspNet.Security.OAuth.Validation/OAuthValidationMiddleware.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public OAuthValidationMiddleware(
4545
{
4646
// Note: the following purposes must match the ones used by the OpenID Connect server middleware.
4747
var protector = Options.DataProtectionProvider.CreateProtector(
48-
"OpenIdConnectServerMiddleware", nameof(Options.AccessTokenFormat), "ASOS");
48+
"OpenIdConnectServerHandler", nameof(Options.AccessTokenFormat), "ASOS");
4949

5050
Options.AccessTokenFormat = new TicketDataFormat(protector);
5151
}

src/Owin.Security.OAuth.Introspection/OAuthIntrospectionMiddleware.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public OAuthIntrospectionMiddleware(
6363
if (options.AccessTokenFormat == null)
6464
{
6565
var protector = Options.DataProtectionProvider.CreateProtector(
66-
nameof(OAuthIntrospectionMiddleware),
66+
nameof(OAuthIntrospectionHandler),
6767
nameof(Options.AccessTokenFormat), Options.AuthenticationType);
6868

6969
options.AccessTokenFormat = new AspNetTicketDataFormat(new DataProtectorShim(protector));

src/Owin.Security.OAuth.Validation/OAuthValidationMiddleware.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public OAuthValidationMiddleware(
5555
{
5656
// Note: the following purposes must match the ones used by the OpenID Connect server middleware.
5757
var protector = Options.DataProtectionProvider.CreateProtector(
58-
"OpenIdConnectServerMiddleware", nameof(Options.AccessTokenFormat), "ASOS");
58+
"OpenIdConnectServerHandler", nameof(Options.AccessTokenFormat), "ASOS");
5959

6060
options.AccessTokenFormat = new AspNetTicketDataFormat(new DataProtectorShim(protector));
6161
}

0 commit comments

Comments
 (0)