Skip to content

Commit 17c2249

Browse files
committed
frontend changes
1 parent b90220d commit 17c2249

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

site/src/pages/LoginPage/SignInForm.stories.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export const SigningIn: Story = {
2020
isSigningIn: true,
2121
authMethods: {
2222
password: { enabled: true },
23-
github: { enabled: true },
23+
github: { enabled: true, default_provider_configured: false },
2424
oidc: { enabled: false, signInText: "", iconUrl: "" },
2525
},
2626
},
@@ -44,7 +44,7 @@ export const WithGithub: Story = {
4444
args: {
4545
authMethods: {
4646
password: { enabled: true },
47-
github: { enabled: true },
47+
github: { enabled: true, default_provider_configured: false },
4848
oidc: { enabled: false, signInText: "", iconUrl: "" },
4949
},
5050
},
@@ -54,7 +54,7 @@ export const WithOIDC: Story = {
5454
args: {
5555
authMethods: {
5656
password: { enabled: true },
57-
github: { enabled: false },
57+
github: { enabled: false, default_provider_configured: false },
5858
oidc: { enabled: true, signInText: "", iconUrl: "" },
5959
},
6060
},
@@ -64,7 +64,7 @@ export const WithOIDCWithoutPassword: Story = {
6464
args: {
6565
authMethods: {
6666
password: { enabled: false },
67-
github: { enabled: false },
67+
github: { enabled: false, default_provider_configured: false },
6868
oidc: { enabled: true, signInText: "", iconUrl: "" },
6969
},
7070
},
@@ -74,7 +74,7 @@ export const WithoutAny: Story = {
7474
args: {
7575
authMethods: {
7676
password: { enabled: false },
77-
github: { enabled: false },
77+
github: { enabled: false, default_provider_configured: false },
7878
oidc: { enabled: false, signInText: "", iconUrl: "" },
7979
},
8080
},
@@ -84,7 +84,7 @@ export const WithGithubAndOIDC: Story = {
8484
args: {
8585
authMethods: {
8686
password: { enabled: true },
87-
github: { enabled: true },
87+
github: { enabled: true, default_provider_configured: false },
8888
oidc: { enabled: true, signInText: "", iconUrl: "" },
8989
},
9090
},

site/src/testHelpers/entities.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1684,20 +1684,20 @@ export const MockUserAgent = {
16841684

16851685
export const MockAuthMethodsPasswordOnly: TypesGen.AuthMethods = {
16861686
password: { enabled: true },
1687-
github: { enabled: false },
1687+
github: { enabled: false, default_provider_configured: true },
16881688
oidc: { enabled: false, signInText: "", iconUrl: "" },
16891689
};
16901690

16911691
export const MockAuthMethodsPasswordTermsOfService: TypesGen.AuthMethods = {
16921692
terms_of_service_url: "https://www.youtube.com/watch?v=C2f37Vb2NAE",
16931693
password: { enabled: true },
1694-
github: { enabled: false },
1694+
github: { enabled: false, default_provider_configured: true },
16951695
oidc: { enabled: false, signInText: "", iconUrl: "" },
16961696
};
16971697

16981698
export const MockAuthMethodsExternal: TypesGen.AuthMethods = {
16991699
password: { enabled: false },
1700-
github: { enabled: true },
1700+
github: { enabled: true, default_provider_configured: true },
17011701
oidc: {
17021702
enabled: true,
17031703
signInText: "Google",
@@ -1707,7 +1707,7 @@ export const MockAuthMethodsExternal: TypesGen.AuthMethods = {
17071707

17081708
export const MockAuthMethodsAll: TypesGen.AuthMethods = {
17091709
password: { enabled: true },
1710-
github: { enabled: true },
1710+
github: { enabled: true, default_provider_configured: true },
17111711
oidc: {
17121712
enabled: true,
17131713
signInText: "Google",

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy