mirror of
https://github.com/morbalint/kemkas.git
synced 2026-07-18 03:13:46 +00:00
add discord and facebook signin & some basic privacy policy
This commit is contained in:
+15
-3
@@ -36,9 +36,21 @@ builder.Services.AddDefaultIdentity<ApplicationUser>(options => options.SignIn.R
|
||||
builder.Services.AddAuthentication()
|
||||
.AddGoogle(options =>
|
||||
{
|
||||
var googleAuthNSection = builder.Configuration.GetSection("Authentication:Google");
|
||||
options.ClientId = googleAuthNSection["ClientId"];
|
||||
options.ClientSecret = googleAuthNSection["ClientSecret"];
|
||||
var section = builder.Configuration.GetSection("Authentication:Google");
|
||||
options.ClientId = section["ClientId"];
|
||||
options.ClientSecret = section["ClientSecret"];
|
||||
})
|
||||
.AddFacebook(options =>
|
||||
{
|
||||
var section = builder.Configuration.GetSection("Authentication:Facebook");
|
||||
options.ClientId = section["ClientId"];
|
||||
options.ClientSecret = section["ClientSecret"];
|
||||
})
|
||||
.AddDiscord(options =>
|
||||
{
|
||||
var section = builder.Configuration.GetSection("Authentication:Discord");
|
||||
options.ClientId = section["ClientId"];
|
||||
options.ClientSecret = section["ClientSecret"];
|
||||
});
|
||||
|
||||
builder.Services.AddControllersWithViews().AddJsonOptions(options =>
|
||||
|
||||
Reference in New Issue
Block a user