Skip to content
This repository was archived by the owner on Sep 26, 2025. It is now read-only.

Commit 3467797

Browse files
authored
chore: update schemas (#981)
1 parent bc927ad commit 3467797

File tree

17 files changed

+1069
-14
lines changed

17 files changed

+1069
-14
lines changed

cmd/config/example.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,12 @@ func commandExample(cCtx *cli.Context) error { //nolint:funlen,maintidx
267267
ClientSecret: ptr("clientsecret"),
268268
Audience: ptr("audience"),
269269
},
270+
Entraid: &model.ConfigAuthMethodOauthEntraid{
271+
ClientId: ptr("entraidClientId"),
272+
ClientSecret: ptr("entraidClientSecret"),
273+
Enabled: ptr(true),
274+
Tenant: ptr("entraidTenant"),
275+
},
270276
Facebook: &model.ConfigStandardOauthProviderWithScope{
271277
Enabled: ptr(true),
272278
ClientId: ptr("clientid"),

cmd/config/validate_test.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,10 @@ func expectedConfig() *model.ConfigConfig {
137137
Discord: &model.ConfigStandardOauthProviderWithScope{
138138
Enabled: ptr(false),
139139
},
140+
Entraid: &model.ConfigAuthMethodOauthEntraid{
141+
Enabled: ptr(false),
142+
Tenant: ptr("common"),
143+
},
140144
Facebook: &model.ConfigStandardOauthProviderWithScope{
141145
Enabled: ptr(false),
142146
},

dockercompose/auth_test.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,10 @@ func expectedAuth() *Service {
6565
"AUTH_PROVIDER_DISCORD_CLIENT_SECRET": "discordClientSecret",
6666
"AUTH_PROVIDER_DISCORD_ENABLED": "true",
6767
"AUTH_PROVIDER_DISCORD_SCOPE": "identify,email",
68+
"AUTH_PROVIDER_ENTRAID_CLIENT_ID": "entraidClientId",
69+
"AUTH_PROVIDER_ENTRAID_CLIENT_SECRET": "entraidClientSecret",
70+
"AUTH_PROVIDER_ENTRAID_ENABLED": "true",
71+
"AUTH_PROVIDER_ENTRAID_TENANT": "entraidTenant",
6872
"AUTH_PROVIDER_FACEBOOK_AUDIENCE": "audience",
6973
"AUTH_PROVIDER_FACEBOOK_CLIENT_ID": "facebookClientId",
7074
"AUTH_PROVIDER_FACEBOOK_CLIENT_SECRET": "facebookClientSecret",

dockercompose/main_test.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,12 @@ func getConfig() *model.ConfigConfig { //nolint:maintidx
107107
Scope: []string{"identify", "email"},
108108
Audience: ptr("audience"),
109109
},
110+
Entraid: &model.ConfigAuthMethodOauthEntraid{
111+
ClientId: ptr("entraidClientId"),
112+
ClientSecret: ptr("entraidClientSecret"),
113+
Enabled: ptr(true),
114+
Tenant: ptr("entraidTenant"),
115+
},
110116
Facebook: &model.ConfigStandardOauthProviderWithScope{
111117
ClientId: ptr("facebookClientId"),
112118
ClientSecret: ptr("facebookClientSecret"),

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ require (
1414
github.com/google/go-cmp v0.7.0
1515
github.com/google/uuid v1.6.0
1616
github.com/hashicorp/go-getter v1.7.8
17-
github.com/nhost/be v0.0.0-20250730065440-072ba750534a
17+
github.com/nhost/be v0.0.0-20250826100053-51f349e46355
1818
github.com/pelletier/go-toml/v2 v2.2.4
1919
github.com/rs/cors/wrapper/gin v0.0.0-20240830163046-1084d89a1692
2020
github.com/sirupsen/logrus v1.9.3

go.sum

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1049,6 +1049,8 @@ github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 h1:C3w9PqII01/Oq
10491049
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822/go.mod h1:+n7T8mK8HuQTcFwEeznm/DIxMOiR9yIdICNftLE1DvQ=
10501050
github.com/nhost/be v0.0.0-20250730065440-072ba750534a h1:PBNFdtz2XdGUbFVDTJNBdKwtWLab3jgEl0fpb5rn3j0=
10511051
github.com/nhost/be v0.0.0-20250730065440-072ba750534a/go.mod h1:Btk2JXy1ih/+VTlNItNNFfhOTZlKlrodBqXaJ+2K7Pg=
1052+
github.com/nhost/be v0.0.0-20250826100053-51f349e46355 h1:K0orUm3ex3GBuZ8InnmSjAVbYqcO4LfK1ftcsPDS6k0=
1053+
github.com/nhost/be v0.0.0-20250826100053-51f349e46355/go.mod h1:iRPhO+qcQzTtNQ7PaQMJAcEw0tgWzgjzcGWgJ4ifrUo=
10521054
github.com/onsi/gomega v1.34.1 h1:EUMJIKUjM8sKjYbtxQI9A4z2o+rruxnzNvpknOXie6k=
10531055
github.com/onsi/gomega v1.34.1/go.mod h1:kU1QgUvBDLXBJq618Xvm2LUX6rSAfRaFRTcdOeDLwwY=
10541056
github.com/pelletier/go-toml/v2 v2.2.4 h1:mye9XuhQ6gvn5h28+VilKrrPoQVanw5PMw/TB0t5Ec4=

nhostclient/graphql/models_gen.go

Lines changed: 16 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)