Skip to content

Commit 036b01d

Browse files
committed
Refactor the configuration retriever
1 parent 982ccba commit 036b01d

File tree

4 files changed

+182
-123
lines changed

4 files changed

+182
-123
lines changed

src/AspNet.Security.OpenId.Steam/SteamAuthenticationHandler.cs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,21 +6,17 @@
66

77
using System;
88
using System.Collections.Generic;
9-
using System.IO;
10-
using System.Linq;
119
using System.Net.Http;
1210
using System.Net.Http.Headers;
1311
using System.Security.Claims;
1412
using System.Text.Encodings.Web;
1513
using System.Threading.Tasks;
1614
using JetBrains.Annotations;
1715
using Microsoft.AspNetCore.Authentication;
18-
using Microsoft.AspNetCore.Http.Features.Authentication;
1916
using Microsoft.AspNetCore.WebUtilities;
2017
using Microsoft.Extensions.Logging;
2118
using Microsoft.Extensions.Options;
2219
using Newtonsoft.Json.Linq;
23-
using AspNet.Security.OpenId;
2420

2521
namespace AspNet.Security.OpenId.Steam
2622
{
@@ -108,11 +104,13 @@ protected override async Task<AuthenticationTicket> CreateTicketAsync(
108104
context.Attributes.Add(attribute);
109105
}
110106

111-
await Options.Events.Authenticated(context);
107+
await Events.Authenticated(context);
112108

113109
// Note: return the authentication ticket associated
114110
// with the notification to allow replacing the ticket.
115111
return context.Ticket;
116112
}
113+
114+
private new OpenIdAuthenticationEvents Events => (OpenIdAuthenticationEvents) base.Events;
117115
}
118116
}

0 commit comments

Comments
 (0)