@@ -354,6 +354,7 @@ type (
354
354
Url string `toml:"url"`
355
355
RedirectUri string `toml:"redirect_uri"`
356
356
SkipNonceCheck bool `toml:"skip_nonce_check"`
357
+ EmailOptional bool `toml:"email_optional"`
357
358
}
358
359
359
360
solana struct {
@@ -952,6 +953,7 @@ func (e external) toAuthConfigBody(body *v1API.UpdateAuthConfigBody) {
952
953
if len (p .Secret .SHA256 ) > 0 {
953
954
body .ExternalAppleSecret = nullable .NewNullableWithValue (p .Secret .Value )
954
955
}
956
+ body .ExternalAppleEmailOptional = nullable .NewNullableWithValue (p .EmailOptional )
955
957
}
956
958
}
957
959
if p , ok := e ["azure" ]; ok {
@@ -961,6 +963,7 @@ func (e external) toAuthConfigBody(body *v1API.UpdateAuthConfigBody) {
961
963
body .ExternalAzureSecret = nullable .NewNullableWithValue (p .Secret .Value )
962
964
}
963
965
body .ExternalAzureUrl = nullable .NewNullableWithValue (p .Url )
966
+ body .ExternalAzureEmailOptional = nullable .NewNullableWithValue (p .EmailOptional )
964
967
}
965
968
}
966
969
if p , ok := e ["bitbucket" ]; ok {
@@ -969,6 +972,7 @@ func (e external) toAuthConfigBody(body *v1API.UpdateAuthConfigBody) {
969
972
if len (p .Secret .SHA256 ) > 0 {
970
973
body .ExternalBitbucketSecret = nullable .NewNullableWithValue (p .Secret .Value )
971
974
}
975
+ body .ExternalBitbucketEmailOptional = nullable .NewNullableWithValue (p .EmailOptional )
972
976
}
973
977
}
974
978
if p , ok := e ["discord" ]; ok {
@@ -977,6 +981,7 @@ func (e external) toAuthConfigBody(body *v1API.UpdateAuthConfigBody) {
977
981
if len (p .Secret .SHA256 ) > 0 {
978
982
body .ExternalDiscordSecret = nullable .NewNullableWithValue (p .Secret .Value )
979
983
}
984
+ body .ExternalDiscordEmailOptional = nullable .NewNullableWithValue (p .EmailOptional )
980
985
}
981
986
}
982
987
if p , ok := e ["facebook" ]; ok {
@@ -985,6 +990,7 @@ func (e external) toAuthConfigBody(body *v1API.UpdateAuthConfigBody) {
985
990
if len (p .Secret .SHA256 ) > 0 {
986
991
body .ExternalFacebookSecret = nullable .NewNullableWithValue (p .Secret .Value )
987
992
}
993
+ body .ExternalFacebookEmailOptional = nullable .NewNullableWithValue (p .EmailOptional )
988
994
}
989
995
}
990
996
if p , ok := e ["figma" ]; ok {
@@ -993,6 +999,7 @@ func (e external) toAuthConfigBody(body *v1API.UpdateAuthConfigBody) {
993
999
if len (p .Secret .SHA256 ) > 0 {
994
1000
body .ExternalFigmaSecret = nullable .NewNullableWithValue (p .Secret .Value )
995
1001
}
1002
+ body .ExternalFigmaEmailOptional = nullable .NewNullableWithValue (p .EmailOptional )
996
1003
}
997
1004
}
998
1005
if p , ok := e ["github" ]; ok {
@@ -1001,6 +1008,7 @@ func (e external) toAuthConfigBody(body *v1API.UpdateAuthConfigBody) {
1001
1008
if len (p .Secret .SHA256 ) > 0 {
1002
1009
body .ExternalGithubSecret = nullable .NewNullableWithValue (p .Secret .Value )
1003
1010
}
1011
+ body .ExternalGithubEmailOptional = nullable .NewNullableWithValue (p .EmailOptional )
1004
1012
}
1005
1013
}
1006
1014
if p , ok := e ["gitlab" ]; ok {
@@ -1010,6 +1018,7 @@ func (e external) toAuthConfigBody(body *v1API.UpdateAuthConfigBody) {
1010
1018
body .ExternalGitlabSecret = nullable .NewNullableWithValue (p .Secret .Value )
1011
1019
}
1012
1020
body .ExternalGitlabUrl = nullable .NewNullableWithValue (p .Url )
1021
+ body .ExternalGitlabEmailOptional = nullable .NewNullableWithValue (p .EmailOptional )
1013
1022
}
1014
1023
}
1015
1024
if p , ok := e ["google" ]; ok {
@@ -1019,6 +1028,7 @@ func (e external) toAuthConfigBody(body *v1API.UpdateAuthConfigBody) {
1019
1028
body .ExternalGoogleSecret = nullable .NewNullableWithValue (p .Secret .Value )
1020
1029
}
1021
1030
body .ExternalGoogleSkipNonceCheck = nullable .NewNullableWithValue (p .SkipNonceCheck )
1031
+ body .ExternalGoogleEmailOptional = nullable .NewNullableWithValue (p .EmailOptional )
1022
1032
}
1023
1033
}
1024
1034
if p , ok := e ["kakao" ]; ok {
@@ -1027,6 +1037,7 @@ func (e external) toAuthConfigBody(body *v1API.UpdateAuthConfigBody) {
1027
1037
if len (p .Secret .SHA256 ) > 0 {
1028
1038
body .ExternalKakaoSecret = nullable .NewNullableWithValue (p .Secret .Value )
1029
1039
}
1040
+ body .ExternalKakaoEmailOptional = nullable .NewNullableWithValue (p .EmailOptional )
1030
1041
}
1031
1042
}
1032
1043
if p , ok := e ["keycloak" ]; ok {
@@ -1036,6 +1047,7 @@ func (e external) toAuthConfigBody(body *v1API.UpdateAuthConfigBody) {
1036
1047
body .ExternalKeycloakSecret = nullable .NewNullableWithValue (p .Secret .Value )
1037
1048
}
1038
1049
body .ExternalKeycloakUrl = nullable .NewNullableWithValue (p .Url )
1050
+ body .ExternalKeycloakEmailOptional = nullable .NewNullableWithValue (p .EmailOptional )
1039
1051
}
1040
1052
}
1041
1053
if p , ok := e ["linkedin_oidc" ]; ok {
@@ -1044,6 +1056,7 @@ func (e external) toAuthConfigBody(body *v1API.UpdateAuthConfigBody) {
1044
1056
if len (p .Secret .SHA256 ) > 0 {
1045
1057
body .ExternalLinkedinOidcSecret = nullable .NewNullableWithValue (p .Secret .Value )
1046
1058
}
1059
+ body .ExternalLinkedinOidcEmailOptional = nullable .NewNullableWithValue (p .EmailOptional )
1047
1060
}
1048
1061
}
1049
1062
if p , ok := e ["notion" ]; ok {
@@ -1052,6 +1065,7 @@ func (e external) toAuthConfigBody(body *v1API.UpdateAuthConfigBody) {
1052
1065
if len (p .Secret .SHA256 ) > 0 {
1053
1066
body .ExternalNotionSecret = nullable .NewNullableWithValue (p .Secret .Value )
1054
1067
}
1068
+ body .ExternalNotionEmailOptional = nullable .NewNullableWithValue (p .EmailOptional )
1055
1069
}
1056
1070
}
1057
1071
if p , ok := e ["slack_oidc" ]; ok {
@@ -1060,6 +1074,7 @@ func (e external) toAuthConfigBody(body *v1API.UpdateAuthConfigBody) {
1060
1074
if len (p .Secret .SHA256 ) > 0 {
1061
1075
body .ExternalSlackOidcSecret = nullable .NewNullableWithValue (p .Secret .Value )
1062
1076
}
1077
+ body .ExternalSlackOidcEmailOptional = nullable .NewNullableWithValue (p .EmailOptional )
1063
1078
}
1064
1079
}
1065
1080
if p , ok := e ["spotify" ]; ok {
@@ -1068,6 +1083,7 @@ func (e external) toAuthConfigBody(body *v1API.UpdateAuthConfigBody) {
1068
1083
if len (p .Secret .SHA256 ) > 0 {
1069
1084
body .ExternalSpotifySecret = nullable .NewNullableWithValue (p .Secret .Value )
1070
1085
}
1086
+ body .ExternalSpotifyEmailOptional = nullable .NewNullableWithValue (p .EmailOptional )
1071
1087
}
1072
1088
}
1073
1089
if p , ok := e ["twitch" ]; ok {
@@ -1076,6 +1092,7 @@ func (e external) toAuthConfigBody(body *v1API.UpdateAuthConfigBody) {
1076
1092
if len (p .Secret .SHA256 ) > 0 {
1077
1093
body .ExternalTwitchSecret = nullable .NewNullableWithValue (p .Secret .Value )
1078
1094
}
1095
+ body .ExternalTwitchEmailOptional = nullable .NewNullableWithValue (p .EmailOptional )
1079
1096
}
1080
1097
}
1081
1098
if p , ok := e ["twitter" ]; ok {
@@ -1084,6 +1101,7 @@ func (e external) toAuthConfigBody(body *v1API.UpdateAuthConfigBody) {
1084
1101
if len (p .Secret .SHA256 ) > 0 {
1085
1102
body .ExternalTwitterSecret = nullable .NewNullableWithValue (p .Secret .Value )
1086
1103
}
1104
+ body .ExternalTwitterEmailOptional = nullable .NewNullableWithValue (p .EmailOptional )
1087
1105
}
1088
1106
}
1089
1107
if p , ok := e ["workos" ]; ok {
@@ -1101,6 +1119,7 @@ func (e external) toAuthConfigBody(body *v1API.UpdateAuthConfigBody) {
1101
1119
if len (p .Secret .SHA256 ) > 0 {
1102
1120
body .ExternalZoomSecret = nullable .NewNullableWithValue (p .Secret .Value )
1103
1121
}
1122
+ body .ExternalZoomEmailOptional = nullable .NewNullableWithValue (p .EmailOptional )
1104
1123
}
1105
1124
}
1106
1125
}
@@ -1119,6 +1138,7 @@ func (e external) fromAuthConfig(remoteConfig v1API.AuthConfigResponse) {
1119
1138
if len (p .Secret .SHA256 ) > 0 {
1120
1139
p .Secret .SHA256 = ValOrDefault (remoteConfig .ExternalAppleSecret , "" )
1121
1140
}
1141
+ p .EmailOptional = ValOrDefault (remoteConfig .ExternalAppleEmailOptional , false )
1122
1142
}
1123
1143
p .Enabled = ValOrDefault (remoteConfig .ExternalAppleEnabled , false )
1124
1144
e ["apple" ] = p
@@ -1131,6 +1151,7 @@ func (e external) fromAuthConfig(remoteConfig v1API.AuthConfigResponse) {
1131
1151
p .Secret .SHA256 = ValOrDefault (remoteConfig .ExternalAzureSecret , "" )
1132
1152
}
1133
1153
p .Url = ValOrDefault (remoteConfig .ExternalAzureUrl , "" )
1154
+ p .EmailOptional = ValOrDefault (remoteConfig .ExternalAzureEmailOptional , false )
1134
1155
}
1135
1156
p .Enabled = ValOrDefault (remoteConfig .ExternalAzureEnabled , false )
1136
1157
e ["azure" ] = p
@@ -1142,6 +1163,7 @@ func (e external) fromAuthConfig(remoteConfig v1API.AuthConfigResponse) {
1142
1163
if len (p .Secret .SHA256 ) > 0 {
1143
1164
p .Secret .SHA256 = ValOrDefault (remoteConfig .ExternalBitbucketSecret , "" )
1144
1165
}
1166
+ p .EmailOptional = ValOrDefault (remoteConfig .ExternalBitbucketEmailOptional , false )
1145
1167
}
1146
1168
p .Enabled = ValOrDefault (remoteConfig .ExternalBitbucketEnabled , false )
1147
1169
e ["bitbucket" ] = p
@@ -1153,6 +1175,7 @@ func (e external) fromAuthConfig(remoteConfig v1API.AuthConfigResponse) {
1153
1175
if len (p .Secret .SHA256 ) > 0 {
1154
1176
p .Secret .SHA256 = ValOrDefault (remoteConfig .ExternalDiscordSecret , "" )
1155
1177
}
1178
+ p .EmailOptional = ValOrDefault (remoteConfig .ExternalDiscordEmailOptional , false )
1156
1179
}
1157
1180
p .Enabled = ValOrDefault (remoteConfig .ExternalDiscordEnabled , false )
1158
1181
e ["discord" ] = p
@@ -1164,6 +1187,7 @@ func (e external) fromAuthConfig(remoteConfig v1API.AuthConfigResponse) {
1164
1187
if len (p .Secret .SHA256 ) > 0 {
1165
1188
p .Secret .SHA256 = ValOrDefault (remoteConfig .ExternalFacebookSecret , "" )
1166
1189
}
1190
+ p .EmailOptional = ValOrDefault (remoteConfig .ExternalFacebookEmailOptional , false )
1167
1191
}
1168
1192
p .Enabled = ValOrDefault (remoteConfig .ExternalFacebookEnabled , false )
1169
1193
e ["facebook" ] = p
@@ -1175,6 +1199,7 @@ func (e external) fromAuthConfig(remoteConfig v1API.AuthConfigResponse) {
1175
1199
if len (p .Secret .SHA256 ) > 0 {
1176
1200
p .Secret .SHA256 = ValOrDefault (remoteConfig .ExternalFigmaSecret , "" )
1177
1201
}
1202
+ p .EmailOptional = ValOrDefault (remoteConfig .ExternalFigmaEmailOptional , false )
1178
1203
}
1179
1204
p .Enabled = ValOrDefault (remoteConfig .ExternalFigmaEnabled , false )
1180
1205
e ["figma" ] = p
@@ -1186,6 +1211,7 @@ func (e external) fromAuthConfig(remoteConfig v1API.AuthConfigResponse) {
1186
1211
if len (p .Secret .SHA256 ) > 0 {
1187
1212
p .Secret .SHA256 = ValOrDefault (remoteConfig .ExternalGithubSecret , "" )
1188
1213
}
1214
+ p .EmailOptional = ValOrDefault (remoteConfig .ExternalGithubEmailOptional , false )
1189
1215
}
1190
1216
p .Enabled = ValOrDefault (remoteConfig .ExternalGithubEnabled , false )
1191
1217
e ["github" ] = p
@@ -1198,6 +1224,7 @@ func (e external) fromAuthConfig(remoteConfig v1API.AuthConfigResponse) {
1198
1224
p .Secret .SHA256 = ValOrDefault (remoteConfig .ExternalGitlabSecret , "" )
1199
1225
}
1200
1226
p .Url = ValOrDefault (remoteConfig .ExternalGitlabUrl , "" )
1227
+ p .EmailOptional = ValOrDefault (remoteConfig .ExternalGitlabEmailOptional , false )
1201
1228
}
1202
1229
p .Enabled = ValOrDefault (remoteConfig .ExternalGitlabEnabled , false )
1203
1230
e ["gitlab" ] = p
@@ -1213,6 +1240,7 @@ func (e external) fromAuthConfig(remoteConfig v1API.AuthConfigResponse) {
1213
1240
p .Secret .SHA256 = ValOrDefault (remoteConfig .ExternalGoogleSecret , "" )
1214
1241
}
1215
1242
p .SkipNonceCheck = ValOrDefault (remoteConfig .ExternalGoogleSkipNonceCheck , false )
1243
+ p .EmailOptional = ValOrDefault (remoteConfig .ExternalGoogleEmailOptional , false )
1216
1244
}
1217
1245
p .Enabled = ValOrDefault (remoteConfig .ExternalGoogleEnabled , false )
1218
1246
e ["google" ] = p
@@ -1224,6 +1252,7 @@ func (e external) fromAuthConfig(remoteConfig v1API.AuthConfigResponse) {
1224
1252
if len (p .Secret .SHA256 ) > 0 {
1225
1253
p .Secret .SHA256 = ValOrDefault (remoteConfig .ExternalKakaoSecret , "" )
1226
1254
}
1255
+ p .EmailOptional = ValOrDefault (remoteConfig .ExternalKakaoEmailOptional , false )
1227
1256
}
1228
1257
p .Enabled = ValOrDefault (remoteConfig .ExternalKakaoEnabled , false )
1229
1258
e ["kakao" ] = p
@@ -1236,6 +1265,7 @@ func (e external) fromAuthConfig(remoteConfig v1API.AuthConfigResponse) {
1236
1265
p .Secret .SHA256 = ValOrDefault (remoteConfig .ExternalKeycloakSecret , "" )
1237
1266
}
1238
1267
p .Url = ValOrDefault (remoteConfig .ExternalKeycloakUrl , "" )
1268
+ p .EmailOptional = ValOrDefault (remoteConfig .ExternalKeycloakEmailOptional , false )
1239
1269
}
1240
1270
p .Enabled = ValOrDefault (remoteConfig .ExternalKeycloakEnabled , false )
1241
1271
e ["keycloak" ] = p
@@ -1247,6 +1277,7 @@ func (e external) fromAuthConfig(remoteConfig v1API.AuthConfigResponse) {
1247
1277
if len (p .Secret .SHA256 ) > 0 {
1248
1278
p .Secret .SHA256 = ValOrDefault (remoteConfig .ExternalLinkedinOidcSecret , "" )
1249
1279
}
1280
+ p .EmailOptional = ValOrDefault (remoteConfig .ExternalLinkedinOidcEmailOptional , false )
1250
1281
}
1251
1282
p .Enabled = ValOrDefault (remoteConfig .ExternalLinkedinOidcEnabled , false )
1252
1283
e ["linkedin_oidc" ] = p
@@ -1258,6 +1289,7 @@ func (e external) fromAuthConfig(remoteConfig v1API.AuthConfigResponse) {
1258
1289
if len (p .Secret .SHA256 ) > 0 {
1259
1290
p .Secret .SHA256 = ValOrDefault (remoteConfig .ExternalNotionSecret , "" )
1260
1291
}
1292
+ p .EmailOptional = ValOrDefault (remoteConfig .ExternalNotionEmailOptional , false )
1261
1293
}
1262
1294
p .Enabled = ValOrDefault (remoteConfig .ExternalNotionEnabled , false )
1263
1295
e ["notion" ] = p
@@ -1269,6 +1301,7 @@ func (e external) fromAuthConfig(remoteConfig v1API.AuthConfigResponse) {
1269
1301
if len (p .Secret .SHA256 ) > 0 {
1270
1302
p .Secret .SHA256 = ValOrDefault (remoteConfig .ExternalSlackOidcSecret , "" )
1271
1303
}
1304
+ p .EmailOptional = ValOrDefault (remoteConfig .ExternalSlackOidcEmailOptional , false )
1272
1305
}
1273
1306
p .Enabled = ValOrDefault (remoteConfig .ExternalSlackOidcEnabled , false )
1274
1307
e ["slack_oidc" ] = p
@@ -1280,6 +1313,7 @@ func (e external) fromAuthConfig(remoteConfig v1API.AuthConfigResponse) {
1280
1313
if len (p .Secret .SHA256 ) > 0 {
1281
1314
p .Secret .SHA256 = ValOrDefault (remoteConfig .ExternalSpotifySecret , "" )
1282
1315
}
1316
+ p .EmailOptional = ValOrDefault (remoteConfig .ExternalSpotifyEmailOptional , false )
1283
1317
}
1284
1318
p .Enabled = ValOrDefault (remoteConfig .ExternalSpotifyEnabled , false )
1285
1319
e ["spotify" ] = p
@@ -1291,6 +1325,7 @@ func (e external) fromAuthConfig(remoteConfig v1API.AuthConfigResponse) {
1291
1325
if len (p .Secret .SHA256 ) > 0 {
1292
1326
p .Secret .SHA256 = ValOrDefault (remoteConfig .ExternalTwitchSecret , "" )
1293
1327
}
1328
+ p .EmailOptional = ValOrDefault (remoteConfig .ExternalTwitchEmailOptional , false )
1294
1329
}
1295
1330
p .Enabled = ValOrDefault (remoteConfig .ExternalTwitchEnabled , false )
1296
1331
e ["twitch" ] = p
@@ -1302,6 +1337,7 @@ func (e external) fromAuthConfig(remoteConfig v1API.AuthConfigResponse) {
1302
1337
if len (p .Secret .SHA256 ) > 0 {
1303
1338
p .Secret .SHA256 = ValOrDefault (remoteConfig .ExternalTwitterSecret , "" )
1304
1339
}
1340
+ p .EmailOptional = ValOrDefault (remoteConfig .ExternalTwitterEmailOptional , false )
1305
1341
}
1306
1342
p .Enabled = ValOrDefault (remoteConfig .ExternalTwitterEnabled , false )
1307
1343
e ["twitter" ] = p
@@ -1325,6 +1361,7 @@ func (e external) fromAuthConfig(remoteConfig v1API.AuthConfigResponse) {
1325
1361
if len (p .Secret .SHA256 ) > 0 {
1326
1362
p .Secret .SHA256 = ValOrDefault (remoteConfig .ExternalZoomSecret , "" )
1327
1363
}
1364
+ p .EmailOptional = ValOrDefault (remoteConfig .ExternalZoomEmailOptional , false )
1328
1365
}
1329
1366
p .Enabled = ValOrDefault (remoteConfig .ExternalZoomEnabled , false )
1330
1367
e ["zoom" ] = p
0 commit comments