React to security changes
This commit is contained in:
parent
360a06004b
commit
3fbd8aeed1
|
|
@ -47,21 +47,6 @@ namespace IdentitySamples
|
||||||
.AddEntityFrameworkStores<ApplicationDbContext>()
|
.AddEntityFrameworkStores<ApplicationDbContext>()
|
||||||
.AddDefaultTokenProviders();
|
.AddDefaultTokenProviders();
|
||||||
|
|
||||||
services.AddFacebookAuthentication(options =>
|
|
||||||
{
|
|
||||||
options.AppId = "901611409868059";
|
|
||||||
options.AppSecret = "4aa3c530297b1dcebc8860334b39668b";
|
|
||||||
});
|
|
||||||
services.AddGoogleAuthentication(options =>
|
|
||||||
{
|
|
||||||
options.ClientId = "514485782433-fr3ml6sq0imvhi8a7qir0nb46oumtgn9.apps.googleusercontent.com";
|
|
||||||
options.ClientSecret = "V2nDD9SkFbvLTqAUBWBBxYAL";
|
|
||||||
});
|
|
||||||
services.AddTwitterAuthentication(options =>
|
|
||||||
{
|
|
||||||
options.ConsumerKey = "BSdJJ0CrDuvEhpkchnukXZBUv";
|
|
||||||
options.ConsumerSecret = "xKUNuKhsRdHD03eLn67xhPAyE1wFFEndFo1X2UJaK2m1jdAxf4";
|
|
||||||
});
|
|
||||||
services.AddMvc();
|
services.AddMvc();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -82,9 +67,21 @@ namespace IdentitySamples
|
||||||
app.UseDeveloperExceptionPage()
|
app.UseDeveloperExceptionPage()
|
||||||
.UseStaticFiles()
|
.UseStaticFiles()
|
||||||
.UseIdentity()
|
.UseIdentity()
|
||||||
.UseFacebookAuthentication()
|
.UseFacebookAuthentication(options =>
|
||||||
.UseGoogleAuthentication()
|
{
|
||||||
.UseTwitterAuthentication()
|
options.AppId = "901611409868059";
|
||||||
|
options.AppSecret = "4aa3c530297b1dcebc8860334b39668b";
|
||||||
|
})
|
||||||
|
.UseGoogleAuthentication(options =>
|
||||||
|
{
|
||||||
|
options.ClientId = "514485782433-fr3ml6sq0imvhi8a7qir0nb46oumtgn9.apps.googleusercontent.com";
|
||||||
|
options.ClientSecret = "V2nDD9SkFbvLTqAUBWBBxYAL";
|
||||||
|
})
|
||||||
|
.UseTwitterAuthentication(options =>
|
||||||
|
{
|
||||||
|
options.ConsumerKey = "BSdJJ0CrDuvEhpkchnukXZBUv";
|
||||||
|
options.ConsumerSecret = "xKUNuKhsRdHD03eLn67xhPAyE1wFFEndFo1X2UJaK2m1jdAxf4";
|
||||||
|
})
|
||||||
.UseMvc(routes =>
|
.UseMvc(routes =>
|
||||||
{
|
{
|
||||||
routes.MapRoute(
|
routes.MapRoute(
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue