oidc reloaded

This commit is contained in:
Paul Schneider 2016-06-06 12:38:11 +02:00
commit c65985477e
22 changed files with 558 additions and 255 deletions

View file

@ -14,7 +14,7 @@ namespace Yavsc.Auth
/// <summary>
/// An ASP.NET Core middleware for authenticating users using Google OAuth 2.0.
/// </summary>
public class GoogleMiddleware : OAuthMiddleware<GoogleOptions>
public class GoogleMiddleware : OAuthMiddleware<YavscGoogleOptions>
{
private RequestDelegate _next;
private ILogger _logger;
@ -34,7 +34,7 @@ namespace Yavsc.Auth
ILoggerFactory loggerFactory,
UrlEncoder encoder,
IOptions<SharedAuthenticationOptions> sharedOptions,
GoogleOptions options)
YavscGoogleOptions options)
: base(next, dataProtectionProvider, loggerFactory, encoder, sharedOptions, options)
{
if (next == null)
@ -71,7 +71,7 @@ namespace Yavsc.Auth
}
protected override AuthenticationHandler<GoogleOptions> CreateHandler()
protected override AuthenticationHandler<YavscGoogleOptions> CreateHandler()
{
return new GoogleHandler(Backchannel,_logger);
}