|
|
|
@ -407,7 +407,6 @@ namespace Yavsc
|
|
|
|
options.LogoutPath = new PathString("/signout");
|
|
|
|
options.LogoutPath = new PathString("/signout");
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
branch.UseMiddleware<GoogleMiddleware>(googleOptions);
|
|
|
|
branch.UseMiddleware<GoogleMiddleware>(googleOptions);
|
|
|
|
|
|
|
|
|
|
|
|
// Facebook
|
|
|
|
// Facebook
|
|
|
|
@ -420,10 +419,12 @@ namespace Yavsc
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
var authProvider = new AuthorizationProvider(loggerFactory);
|
|
|
|
|
|
|
|
|
|
|
|
app.UseOpenIdConnectServer(options =>
|
|
|
|
app.UseOpenIdConnectServer(options =>
|
|
|
|
{
|
|
|
|
{
|
|
|
|
options.Provider = new AuthorizationProvider(loggerFactory);
|
|
|
|
options.Provider = authProvider;
|
|
|
|
|
|
|
|
|
|
|
|
// Register the certificate used to sign the JWT tokens.
|
|
|
|
// Register the certificate used to sign the JWT tokens.
|
|
|
|
/* options.SigningCredentials.AddCertificate(
|
|
|
|
/* options.SigningCredentials.AddCertificate(
|
|
|
|
assembly: typeof(Startup).GetTypeInfo().Assembly,
|
|
|
|
assembly: typeof(Startup).GetTypeInfo().Assembly,
|
|
|
|
@ -442,6 +443,7 @@ namespace Yavsc
|
|
|
|
options.AllowInsecureHttp = true;
|
|
|
|
options.AllowInsecureHttp = true;
|
|
|
|
options.AuthenticationScheme = "oidc"; // was = OpenIdConnectDefaults.AuthenticationScheme;
|
|
|
|
options.AuthenticationScheme = "oidc"; // was = OpenIdConnectDefaults.AuthenticationScheme;
|
|
|
|
options.LogoutEndpointPath = new PathString("/connect/logout");
|
|
|
|
options.LogoutEndpointPath = new PathString("/connect/logout");
|
|
|
|
|
|
|
|
|
|
|
|
/* options.ValidationEndpointPath = new PathString("/connect/introspect"); */
|
|
|
|
/* options.ValidationEndpointPath = new PathString("/connect/introspect"); */
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|