@@ -40,21 +40,24 @@ All of the configuration values are stored in under a `discourse` key in `config
40
40
'discourse' => [
41
41
// Middleware for the SSO login route to use
42
42
'middleware' => ['web', 'auth'],
43
-
43
+
44
44
// The route's URI that acts as the entry point for Discourse to start the SSO process.
45
45
// Used by Discourse to route incoming logins.
46
46
'route' => 'discourse/sso',
47
-
47
+
48
+ // Optional domain to link sso route when using SSubdomain Routing
49
+ 'domain' => null,
50
+
48
51
// Secret string used to encrypt/decrypt SSO information,
49
52
// be sure that it is 10 chars or longer
50
53
'secret' => env('DISCOURSE_SECRET'),
51
-
54
+
52
55
// Disable Discourse from sending welcome message
53
56
'suppress_welcome_message' => 'true',
54
-
57
+
55
58
// Where the Discourse forum lives
56
59
'url' => env('DISCOURSE_URL'),
57
-
60
+
58
61
// Api-specific items
59
62
// For logging out of Discourse directly, generate an API key as an "All user key" and put the key & user here.
60
63
// @see https://meta.discourse.org/t/how-to-create-an-api-key-on-the-admin-panel/87383
@@ -68,7 +71,7 @@ All of the configuration values are stored in under a `discourse` key in `config
68
71
'user' => [
69
72
// Check to see if the user has forum access & should be logged in via SSO
70
73
'access' => null,
71
-
74
+
72
75
// Discourse Groups to make sure that the user is part of in a comma-separated string
73
76
// NOTE: Groups cannot have spaces in their names & must already exist in Discourse
74
77
'add_groups' => null,
@@ -78,23 +81,23 @@ All of the configuration values are stored in under a `discourse` key in `config
78
81
79
82
// Full path to user's avatar image
80
83
'avatar_url' => null,
81
-
84
+
82
85
// The avatar is cached, so this triggers an update
83
86
'avatar_force_update' => false,
84
-
87
+
85
88
// Content of the user's bio
86
89
'bio' => null,
87
-
90
+
88
91
// Verified email address (see "require_activation" if not verified)
89
92
'email' => 'email',
90
-
93
+
91
94
// Unique string for the user that will never change
92
95
'external_id' => 'id',
93
-
94
- // Boolean for making user a Discourse moderator. Leave null to ignore
96
+
97
+ // Boolean for making user a Discourse moderator. Leave null to ignore
95
98
'moderator' => null,
96
-
97
- // Full name on Discourse if the user is new or
99
+
100
+ // Full name on Discourse if the user is new or
98
101
// if SiteSetting.sso_overrides_name is set
99
102
'name' => 'name',
100
103
@@ -103,11 +106,11 @@ All of the configuration values are stored in under a `discourse` key in `config
103
106
// There is not a way to specify the exact list of groups that a user is in, so
104
107
// you may want to send the inverse of the 'add_groups'
105
108
'remove_groups' => null,
106
-
109
+
107
110
// If the email has not been verified, set this to true
108
111
'require_activation' => false,
109
-
110
- // username on Discourse if the user is new or
112
+
113
+ // username on Discourse if the user is new or
111
114
// if SiteSetting.sso_overrides_username is set
112
115
'username' => 'email',
113
116
],
0 commit comments