Skip to content

Commit f11397d

Browse files
authored
Merge pull request #191 from aspnetzero/pr/3275-dev
update Features-Mvc-Core-Social-Logins.md
2 parents df5923c + 5ebb2ef commit f11397d

File tree

3 files changed

+16
-1
lines changed

3 files changed

+16
-1
lines changed

docs/en/Features-Mvc-Core-Social-Logins.md

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ ASP.NET Zero supports social media logins. To enable it, we should change the fo
44

55
```json
66
"Authentication": {
7+
"AllowSocialLoginSettingsPerTenant": false,
78
"Facebook": {
89
"IsEnabled": "false",
910
"AppId": "",
@@ -30,7 +31,21 @@ ASP.NET Zero supports social media logins. To enable it, we should change the fo
3031
You can find many documents on the web to learn how to obtain authentication keys for social platforms. So, we will not go to details of creating apps on social medias. Once you get your keys, you can write
3132
them into `appsettings.json`. When you enable it, social media logos are automatically shown on the login page as shown below:
3233

33-
<img src="images/social-login-logos-3.png" alt="Social Login Icons" class="img-thumbnail" />
34+
<img src="images/social-login-logos-4.png" alt="Social Login Icons" class="img-thumbnail" />
35+
36+
## Social Login Settings Per Tenant
37+
38+
You can allow tenants to change social logins settings. To enable it you should set `AllowSocialLoginSettingsPerTenant` to true in `appsettings.json`
39+
40+
```json
41+
"AllowSocialLoginSettingsPerTenant": true
42+
```
43+
44+
Then your tenant will be able to change their social login settings. If tenants don't set it, host settings will be used.
45+
46+
<img src="images/social-login-logos-5.png" alt="Social Login Icons" class="img-thumbnail" />
47+
48+
3449

3550
## OpenId Connect Login
3651

24.5 KB
Loading
45.1 KB
Loading

0 commit comments

Comments
 (0)