From 879ce4786186807bf6d5c84f77f47b5b5b2f0c55 Mon Sep 17 00:00:00 2001 From: Sattvik Chakravarthy Date: Wed, 24 Jul 2024 16:59:05 +0530 Subject: [PATCH 1/6] fix: oidc urls --- .../multi-tenancy/custom-provider.mdx | 6 ++-- .../multi-tenancy/new-tenant-config.mdx | 6 ++-- .../sign-in-and-up/custom-providers.mdx | 4 +-- .../sign-in-and-up/provider-config.mdx | 30 +++++++++---------- v2/thirdparty/custom-ui/multitenant-login.mdx | 6 ++-- .../pre-built-ui/multitenant-login.mdx | 6 ++-- .../multi-tenancy/custom-provider.mdx | 6 ++-- .../multi-tenancy/new-tenant-config.mdx | 6 ++-- .../sign-in-and-up/provider-config.mdx | 30 +++++++++---------- .../signup-form/custom-providers.mdx | 4 +-- .../custom-ui/multitenant-login.mdx | 6 ++-- .../pre-built-ui/multitenant-login.mdx | 6 ++-- .../multi-tenancy/custom-provider.mdx | 6 ++-- .../multi-tenancy/new-tenant-config.mdx | 6 ++-- .../sign-in-and-up/provider-config.mdx | 30 +++++++++---------- .../signup-form/custom-providers.mdx | 4 +-- .../custom-ui/multitenant-login.mdx | 6 ++-- .../pre-built-ui/multitenant-login.mdx | 6 ++-- 18 files changed, 87 insertions(+), 87 deletions(-) diff --git a/v2/thirdparty/common-customizations/multi-tenancy/custom-provider.mdx b/v2/thirdparty/common-customizations/multi-tenancy/custom-provider.mdx index fda542afe..30c433fc3 100644 --- a/v2/thirdparty/common-customizations/multi-tenancy/custom-provider.mdx +++ b/v2/thirdparty/common-customizations/multi-tenancy/custom-provider.mdx @@ -326,7 +326,7 @@ async function createTenant() { scope: ["email", "profile"] }], // highlight-start - oidcDiscoveryEndpoint: "https://example.com", + oidcDiscoveryEndpoint: "https://example.com/.well-known/openid-configuration", // highlight-end authorizationEndpointQueryParams: { // optional "someKey1": "value1", @@ -372,7 +372,7 @@ func main() { }, }, // highlight-start - OIDCDiscoveryEndpoint: "https://example.com", + OIDCDiscoveryEndpoint: "https://example.com/.well-known/openid-configuration", // highlight-end AuthorizationEndpointQueryParams: map[string]interface{}{ // optional "someKey1": "value1", @@ -461,7 +461,7 @@ curl --location --request PUT '^{coreInjector_uri_without_quotes}//re "clientSecret": "...", "scope": ["email", "profile"] }], - "oidcDiscoveryEndpoint": "https://example.com", + "oidcDiscoveryEndpoint": "https://example.com/.well-known/openid-configuration", "authorizationEndpointQueryParams": { "someKey1": "value1", "someKey2": "value2" diff --git a/v2/thirdparty/common-customizations/multi-tenancy/new-tenant-config.mdx b/v2/thirdparty/common-customizations/multi-tenancy/new-tenant-config.mdx index 0ec030789..a0d312ec5 100644 --- a/v2/thirdparty/common-customizations/multi-tenancy/new-tenant-config.mdx +++ b/v2/thirdparty/common-customizations/multi-tenancy/new-tenant-config.mdx @@ -193,7 +193,7 @@ async function createTenant() { clientId: "...", clientSecret: "...", }], - oidcDiscoveryEndpoint: "https://login.microsoftonline.com//v2.0", + oidcDiscoveryEndpoint: "https://login.microsoftonline.com//v2.0/.well-known/openid-configuration", }); if (resp.createdNew) { @@ -226,7 +226,7 @@ func main() { ClientSecret: "...", }, }, - OIDCDiscoveryEndpoint: "https://login.microsoftonline.com//v2.0", + OIDCDiscoveryEndpoint: "https://login.microsoftonline.com//v2.0/.well-known/openid-configuration", }, nil, nil) // highlight-end @@ -327,7 +327,7 @@ curl --location --request PUT '^{coreInjector_uri_without_quotes}//re "clientSecret": "..." } ], - "oidcDiscoveryEndpoint": "https://login.microsoftonline.com//v2.0" + "oidcDiscoveryEndpoint": "https://login.microsoftonline.com//v2.0/.well-known/openid-configuration" } }' ``` diff --git a/v2/thirdparty/common-customizations/sign-in-and-up/custom-providers.mdx b/v2/thirdparty/common-customizations/sign-in-and-up/custom-providers.mdx index c907fb5de..b290bf7a8 100644 --- a/v2/thirdparty/common-customizations/sign-in-and-up/custom-providers.mdx +++ b/v2/thirdparty/common-customizations/sign-in-and-up/custom-providers.mdx @@ -317,7 +317,7 @@ SuperTokens.init({ scope: ["profile", "email"] }], // highlight-start - oidcDiscoveryEndpoint: "https://example.com", + oidcDiscoveryEndpoint: "https://example.com/.well-known/openid-configuration", // highlight-end authorizationEndpointQueryParams: { "someKey1": "value1", @@ -368,7 +368,7 @@ func main() { }, }, // highlight-start - OIDCDiscoveryEndpoint: "https://example.com", + OIDCDiscoveryEndpoint: "https://example.com/.well-known/openid-configuration", // highlight-end AuthorizationEndpointQueryParams: map[string]interface{}{ // optional "someKey1": "value1", diff --git a/v2/thirdparty/common-customizations/sign-in-and-up/provider-config.mdx b/v2/thirdparty/common-customizations/sign-in-and-up/provider-config.mdx index 16f78fdd6..d6706abc2 100644 --- a/v2/thirdparty/common-customizations/sign-in-and-up/provider-config.mdx +++ b/v2/thirdparty/common-customizations/sign-in-and-up/provider-config.mdx @@ -2412,7 +2412,7 @@ SuperTokens.init({ clientId: "TODO", clientSecret: "TODO" }], - oidcDiscoveryEndpoint: "https://login.microsoftonline.com//v2.0", + oidcDiscoveryEndpoint: "https://login.microsoftonline.com//v2.0/.well-known/openid-configuration", } } ] @@ -2449,7 +2449,7 @@ func main() { ClientSecret: "TODO:", }, }, - OIDCDiscoveryEndpoint: "https://login.microsoftonline.com//v2.0", + OIDCDiscoveryEndpoint: "https://login.microsoftonline.com//v2.0/.well-known/openid-configuration", }, }, }, @@ -2524,7 +2524,7 @@ async function addThirdPartyToTenant() { clientId: "...", clientSecret: "...", }], - oidcDiscoveryEndpoint: "https://login.microsoftonline.com//v2.0", + oidcDiscoveryEndpoint: "https://login.microsoftonline.com//v2.0/.well-known/openid-configuration", }); if (resp.createdNew) { @@ -2558,7 +2558,7 @@ func main() { ClientSecret: "...", }, }, - OIDCDiscoveryEndpoint: "https://login.microsoftonline.com//v2.0", + OIDCDiscoveryEndpoint: "https://login.microsoftonline.com//v2.0/.well-known/openid-configuration", }, nil) // highlight-end @@ -2662,7 +2662,7 @@ curl --location --request PUT '^{coreInjector_uri_without_quotes}//re "clientSecret": "..." } ], - "oidcDiscoveryEndpoint": "https://login.microsoftonline.com//v2.0" + "oidcDiscoveryEndpoint": "https://login.microsoftonline.com//v2.0/.well-known/openid-configuration" } }' ``` @@ -2710,7 +2710,7 @@ SuperTokens.init({ clientId: "TODO", clientSecret: "TODO" }], - oidcDiscoveryEndpoint: "https://dev-.okta.com", + oidcDiscoveryEndpoint: "https://dev-.okta.com/.well-known/openid-configuration", } } ] @@ -2747,7 +2747,7 @@ func main() { ClientSecret: "TODO:", }, }, - OIDCDiscoveryEndpoint: "https://dev-.okta.com", + OIDCDiscoveryEndpoint: "https://dev-.okta.com/.well-known/openid-configuration", }, }, }, @@ -2822,7 +2822,7 @@ async function addThirdPartyToTenant() { clientId: "...", clientSecret: "...", }], - oidcDiscoveryEndpoint: "https://dev-.okta.com", + oidcDiscoveryEndpoint: "https://dev-.okta.com/.well-known/openid-configuration", }); if (resp.createdNew) { @@ -2856,7 +2856,7 @@ func main() { ClientSecret: "...", }, }, - OIDCDiscoveryEndpoint: "https://dev-.okta.com", + OIDCDiscoveryEndpoint: "https://dev-.okta.com/.well-known/openid-configuration", }, nil) // highlight-end @@ -2960,7 +2960,7 @@ curl --location --request PUT '^{coreInjector_uri_without_quotes}//re "clientSecret": "..." } ], - "oidcDiscoveryEndpoint": "https://dev-.okta.com" + "oidcDiscoveryEndpoint": "https://dev-.okta.com/.well-known/openid-configuration" } }' ``` @@ -3298,7 +3298,7 @@ SuperTokens.init({ clientId: "TODO", clientSecret: "TODO" }], - oidcDiscoveryEndpoint: "https://gitlab.example.com", + oidcDiscoveryEndpoint: "https://gitlab.example.com/.well-known/openid-configuration", } } ] @@ -3335,7 +3335,7 @@ func main() { ClientSecret: "TODO:", }, }, - OIDCDiscoveryEndpoint: "https://gitlab.example.com", + OIDCDiscoveryEndpoint: "https://gitlab.example.com/.well-known/openid-configuration", }, }, }, @@ -3410,7 +3410,7 @@ async function addThirdPartyToTenant() { clientId: "...", clientSecret: "...", }], - oidcDiscoveryEndpoint: "https://gitlab.example.com", + oidcDiscoveryEndpoint: "https://gitlab.example.com/.well-known/openid-configuration", }); if (resp.createdNew) { @@ -3444,7 +3444,7 @@ func main() { ClientSecret: "...", }, }, - OIDCDiscoveryEndpoint: "https://gitlab.example.com", + OIDCDiscoveryEndpoint: "https://gitlab.example.com/.well-known/openid-configuration", }, nil) // highlight-end @@ -3548,7 +3548,7 @@ curl --location --request PUT '^{coreInjector_uri_without_quotes}//re "clientSecret": "..." } ], - "oidcDiscoveryEndpoint": "https://gitlab.example.com" + "oidcDiscoveryEndpoint": "https://gitlab.example.com/.well-known/openid-configuration" } }' ``` diff --git a/v2/thirdparty/custom-ui/multitenant-login.mdx b/v2/thirdparty/custom-ui/multitenant-login.mdx index cf02e00d8..2c77df6a4 100644 --- a/v2/thirdparty/custom-ui/multitenant-login.mdx +++ b/v2/thirdparty/custom-ui/multitenant-login.mdx @@ -224,7 +224,7 @@ async function createTenant() { clientId: "...", clientSecret: "...", }], - oidcDiscoveryEndpoint: "https://login.microsoftonline.com//v2.0", + oidcDiscoveryEndpoint: "https://login.microsoftonline.com//v2.0/.well-known/openid-configuration", }); if (resp.createdNew) { @@ -257,7 +257,7 @@ func main() { ClientSecret: "...", }, }, - OIDCDiscoveryEndpoint: "https://login.microsoftonline.com//v2.0", + OIDCDiscoveryEndpoint: "https://login.microsoftonline.com//v2.0/.well-known/openid-configuration", }, nil, nil) // highlight-end @@ -358,7 +358,7 @@ curl --location --request PUT '^{coreInjector_uri_without_quotes}//re "clientSecret": "..." } ], - "oidcDiscoveryEndpoint": "https://login.microsoftonline.com//v2.0" + "oidcDiscoveryEndpoint": "https://login.microsoftonline.com//v2.0/.well-known/openid-configuration" } }' ``` diff --git a/v2/thirdparty/pre-built-ui/multitenant-login.mdx b/v2/thirdparty/pre-built-ui/multitenant-login.mdx index 179488552..1b3d084cb 100644 --- a/v2/thirdparty/pre-built-ui/multitenant-login.mdx +++ b/v2/thirdparty/pre-built-ui/multitenant-login.mdx @@ -221,7 +221,7 @@ async function createTenant() { clientId: "...", clientSecret: "...", }], - oidcDiscoveryEndpoint: "https://login.microsoftonline.com//v2.0", + oidcDiscoveryEndpoint: "https://login.microsoftonline.com//v2.0/.well-known/openid-configuration", }); if (resp.createdNew) { @@ -254,7 +254,7 @@ func main() { ClientSecret: "...", }, }, - OIDCDiscoveryEndpoint: "https://login.microsoftonline.com//v2.0", + OIDCDiscoveryEndpoint: "https://login.microsoftonline.com//v2.0/.well-known/openid-configuration", }, nil, nil) // highlight-end @@ -355,7 +355,7 @@ curl --location --request PUT '^{coreInjector_uri_without_quotes}//re "clientSecret": "..." } ], - "oidcDiscoveryEndpoint": "https://login.microsoftonline.com//v2.0" + "oidcDiscoveryEndpoint": "https://login.microsoftonline.com//v2.0/.well-known/openid-configuration" } }' ``` diff --git a/v2/thirdpartyemailpassword/common-customizations/multi-tenancy/custom-provider.mdx b/v2/thirdpartyemailpassword/common-customizations/multi-tenancy/custom-provider.mdx index fda542afe..30c433fc3 100644 --- a/v2/thirdpartyemailpassword/common-customizations/multi-tenancy/custom-provider.mdx +++ b/v2/thirdpartyemailpassword/common-customizations/multi-tenancy/custom-provider.mdx @@ -326,7 +326,7 @@ async function createTenant() { scope: ["email", "profile"] }], // highlight-start - oidcDiscoveryEndpoint: "https://example.com", + oidcDiscoveryEndpoint: "https://example.com/.well-known/openid-configuration", // highlight-end authorizationEndpointQueryParams: { // optional "someKey1": "value1", @@ -372,7 +372,7 @@ func main() { }, }, // highlight-start - OIDCDiscoveryEndpoint: "https://example.com", + OIDCDiscoveryEndpoint: "https://example.com/.well-known/openid-configuration", // highlight-end AuthorizationEndpointQueryParams: map[string]interface{}{ // optional "someKey1": "value1", @@ -461,7 +461,7 @@ curl --location --request PUT '^{coreInjector_uri_without_quotes}//re "clientSecret": "...", "scope": ["email", "profile"] }], - "oidcDiscoveryEndpoint": "https://example.com", + "oidcDiscoveryEndpoint": "https://example.com/.well-known/openid-configuration", "authorizationEndpointQueryParams": { "someKey1": "value1", "someKey2": "value2" diff --git a/v2/thirdpartyemailpassword/common-customizations/multi-tenancy/new-tenant-config.mdx b/v2/thirdpartyemailpassword/common-customizations/multi-tenancy/new-tenant-config.mdx index a942891a9..9abe27e56 100644 --- a/v2/thirdpartyemailpassword/common-customizations/multi-tenancy/new-tenant-config.mdx +++ b/v2/thirdpartyemailpassword/common-customizations/multi-tenancy/new-tenant-config.mdx @@ -208,7 +208,7 @@ async function createTenant() { clientId: "...", clientSecret: "...", }], - oidcDiscoveryEndpoint: "https://login.microsoftonline.com//v2.0", + oidcDiscoveryEndpoint: "https://login.microsoftonline.com//v2.0/.well-known/openid-configuration", }); if (resp.createdNew) { @@ -241,7 +241,7 @@ func main() { ClientSecret: "...", }, }, - OIDCDiscoveryEndpoint: "https://login.microsoftonline.com//v2.0", + OIDCDiscoveryEndpoint: "https://login.microsoftonline.com//v2.0/.well-known/openid-configuration", }, nil, nil) // highlight-end @@ -342,7 +342,7 @@ curl --location --request PUT '^{coreInjector_uri_without_quotes}//re "clientSecret": "..." } ], - "oidcDiscoveryEndpoint": "https://login.microsoftonline.com//v2.0" + "oidcDiscoveryEndpoint": "https://login.microsoftonline.com//v2.0/.well-known/openid-configuration" } }' ``` diff --git a/v2/thirdpartyemailpassword/common-customizations/sign-in-and-up/provider-config.mdx b/v2/thirdpartyemailpassword/common-customizations/sign-in-and-up/provider-config.mdx index 16f78fdd6..d6706abc2 100644 --- a/v2/thirdpartyemailpassword/common-customizations/sign-in-and-up/provider-config.mdx +++ b/v2/thirdpartyemailpassword/common-customizations/sign-in-and-up/provider-config.mdx @@ -2412,7 +2412,7 @@ SuperTokens.init({ clientId: "TODO", clientSecret: "TODO" }], - oidcDiscoveryEndpoint: "https://login.microsoftonline.com//v2.0", + oidcDiscoveryEndpoint: "https://login.microsoftonline.com//v2.0/.well-known/openid-configuration", } } ] @@ -2449,7 +2449,7 @@ func main() { ClientSecret: "TODO:", }, }, - OIDCDiscoveryEndpoint: "https://login.microsoftonline.com//v2.0", + OIDCDiscoveryEndpoint: "https://login.microsoftonline.com//v2.0/.well-known/openid-configuration", }, }, }, @@ -2524,7 +2524,7 @@ async function addThirdPartyToTenant() { clientId: "...", clientSecret: "...", }], - oidcDiscoveryEndpoint: "https://login.microsoftonline.com//v2.0", + oidcDiscoveryEndpoint: "https://login.microsoftonline.com//v2.0/.well-known/openid-configuration", }); if (resp.createdNew) { @@ -2558,7 +2558,7 @@ func main() { ClientSecret: "...", }, }, - OIDCDiscoveryEndpoint: "https://login.microsoftonline.com//v2.0", + OIDCDiscoveryEndpoint: "https://login.microsoftonline.com//v2.0/.well-known/openid-configuration", }, nil) // highlight-end @@ -2662,7 +2662,7 @@ curl --location --request PUT '^{coreInjector_uri_without_quotes}//re "clientSecret": "..." } ], - "oidcDiscoveryEndpoint": "https://login.microsoftonline.com//v2.0" + "oidcDiscoveryEndpoint": "https://login.microsoftonline.com//v2.0/.well-known/openid-configuration" } }' ``` @@ -2710,7 +2710,7 @@ SuperTokens.init({ clientId: "TODO", clientSecret: "TODO" }], - oidcDiscoveryEndpoint: "https://dev-.okta.com", + oidcDiscoveryEndpoint: "https://dev-.okta.com/.well-known/openid-configuration", } } ] @@ -2747,7 +2747,7 @@ func main() { ClientSecret: "TODO:", }, }, - OIDCDiscoveryEndpoint: "https://dev-.okta.com", + OIDCDiscoveryEndpoint: "https://dev-.okta.com/.well-known/openid-configuration", }, }, }, @@ -2822,7 +2822,7 @@ async function addThirdPartyToTenant() { clientId: "...", clientSecret: "...", }], - oidcDiscoveryEndpoint: "https://dev-.okta.com", + oidcDiscoveryEndpoint: "https://dev-.okta.com/.well-known/openid-configuration", }); if (resp.createdNew) { @@ -2856,7 +2856,7 @@ func main() { ClientSecret: "...", }, }, - OIDCDiscoveryEndpoint: "https://dev-.okta.com", + OIDCDiscoveryEndpoint: "https://dev-.okta.com/.well-known/openid-configuration", }, nil) // highlight-end @@ -2960,7 +2960,7 @@ curl --location --request PUT '^{coreInjector_uri_without_quotes}//re "clientSecret": "..." } ], - "oidcDiscoveryEndpoint": "https://dev-.okta.com" + "oidcDiscoveryEndpoint": "https://dev-.okta.com/.well-known/openid-configuration" } }' ``` @@ -3298,7 +3298,7 @@ SuperTokens.init({ clientId: "TODO", clientSecret: "TODO" }], - oidcDiscoveryEndpoint: "https://gitlab.example.com", + oidcDiscoveryEndpoint: "https://gitlab.example.com/.well-known/openid-configuration", } } ] @@ -3335,7 +3335,7 @@ func main() { ClientSecret: "TODO:", }, }, - OIDCDiscoveryEndpoint: "https://gitlab.example.com", + OIDCDiscoveryEndpoint: "https://gitlab.example.com/.well-known/openid-configuration", }, }, }, @@ -3410,7 +3410,7 @@ async function addThirdPartyToTenant() { clientId: "...", clientSecret: "...", }], - oidcDiscoveryEndpoint: "https://gitlab.example.com", + oidcDiscoveryEndpoint: "https://gitlab.example.com/.well-known/openid-configuration", }); if (resp.createdNew) { @@ -3444,7 +3444,7 @@ func main() { ClientSecret: "...", }, }, - OIDCDiscoveryEndpoint: "https://gitlab.example.com", + OIDCDiscoveryEndpoint: "https://gitlab.example.com/.well-known/openid-configuration", }, nil) // highlight-end @@ -3548,7 +3548,7 @@ curl --location --request PUT '^{coreInjector_uri_without_quotes}//re "clientSecret": "..." } ], - "oidcDiscoveryEndpoint": "https://gitlab.example.com" + "oidcDiscoveryEndpoint": "https://gitlab.example.com/.well-known/openid-configuration" } }' ``` diff --git a/v2/thirdpartyemailpassword/common-customizations/signup-form/custom-providers.mdx b/v2/thirdpartyemailpassword/common-customizations/signup-form/custom-providers.mdx index c907fb5de..b290bf7a8 100644 --- a/v2/thirdpartyemailpassword/common-customizations/signup-form/custom-providers.mdx +++ b/v2/thirdpartyemailpassword/common-customizations/signup-form/custom-providers.mdx @@ -317,7 +317,7 @@ SuperTokens.init({ scope: ["profile", "email"] }], // highlight-start - oidcDiscoveryEndpoint: "https://example.com", + oidcDiscoveryEndpoint: "https://example.com/.well-known/openid-configuration", // highlight-end authorizationEndpointQueryParams: { "someKey1": "value1", @@ -368,7 +368,7 @@ func main() { }, }, // highlight-start - OIDCDiscoveryEndpoint: "https://example.com", + OIDCDiscoveryEndpoint: "https://example.com/.well-known/openid-configuration", // highlight-end AuthorizationEndpointQueryParams: map[string]interface{}{ // optional "someKey1": "value1", diff --git a/v2/thirdpartyemailpassword/custom-ui/multitenant-login.mdx b/v2/thirdpartyemailpassword/custom-ui/multitenant-login.mdx index 7f4bc394b..a68a19efa 100644 --- a/v2/thirdpartyemailpassword/custom-ui/multitenant-login.mdx +++ b/v2/thirdpartyemailpassword/custom-ui/multitenant-login.mdx @@ -239,7 +239,7 @@ async function createTenant() { clientId: "...", clientSecret: "...", }], - oidcDiscoveryEndpoint: "https://login.microsoftonline.com//v2.0", + oidcDiscoveryEndpoint: "https://login.microsoftonline.com//v2.0/.well-known/openid-configuration", }); if (resp.createdNew) { @@ -272,7 +272,7 @@ func main() { ClientSecret: "...", }, }, - OIDCDiscoveryEndpoint: "https://login.microsoftonline.com//v2.0", + OIDCDiscoveryEndpoint: "https://login.microsoftonline.com//v2.0/.well-known/openid-configuration", }, nil, nil) // highlight-end @@ -373,7 +373,7 @@ curl --location --request PUT '^{coreInjector_uri_without_quotes}//re "clientSecret": "..." } ], - "oidcDiscoveryEndpoint": "https://login.microsoftonline.com//v2.0" + "oidcDiscoveryEndpoint": "https://login.microsoftonline.com//v2.0/.well-known/openid-configuration" } }' ``` diff --git a/v2/thirdpartyemailpassword/pre-built-ui/multitenant-login.mdx b/v2/thirdpartyemailpassword/pre-built-ui/multitenant-login.mdx index 9632a21e5..c0adcac7c 100644 --- a/v2/thirdpartyemailpassword/pre-built-ui/multitenant-login.mdx +++ b/v2/thirdpartyemailpassword/pre-built-ui/multitenant-login.mdx @@ -236,7 +236,7 @@ async function createTenant() { clientId: "...", clientSecret: "...", }], - oidcDiscoveryEndpoint: "https://login.microsoftonline.com//v2.0", + oidcDiscoveryEndpoint: "https://login.microsoftonline.com//v2.0/.well-known/openid-configuration", }); if (resp.createdNew) { @@ -269,7 +269,7 @@ func main() { ClientSecret: "...", }, }, - OIDCDiscoveryEndpoint: "https://login.microsoftonline.com//v2.0", + OIDCDiscoveryEndpoint: "https://login.microsoftonline.com//v2.0/.well-known/openid-configuration", }, nil, nil) // highlight-end @@ -370,7 +370,7 @@ curl --location --request PUT '^{coreInjector_uri_without_quotes}//re "clientSecret": "..." } ], - "oidcDiscoveryEndpoint": "https://login.microsoftonline.com//v2.0" + "oidcDiscoveryEndpoint": "https://login.microsoftonline.com//v2.0/.well-known/openid-configuration" } }' ``` diff --git a/v2/thirdpartypasswordless/common-customizations/multi-tenancy/custom-provider.mdx b/v2/thirdpartypasswordless/common-customizations/multi-tenancy/custom-provider.mdx index fda542afe..30c433fc3 100644 --- a/v2/thirdpartypasswordless/common-customizations/multi-tenancy/custom-provider.mdx +++ b/v2/thirdpartypasswordless/common-customizations/multi-tenancy/custom-provider.mdx @@ -326,7 +326,7 @@ async function createTenant() { scope: ["email", "profile"] }], // highlight-start - oidcDiscoveryEndpoint: "https://example.com", + oidcDiscoveryEndpoint: "https://example.com/.well-known/openid-configuration", // highlight-end authorizationEndpointQueryParams: { // optional "someKey1": "value1", @@ -372,7 +372,7 @@ func main() { }, }, // highlight-start - OIDCDiscoveryEndpoint: "https://example.com", + OIDCDiscoveryEndpoint: "https://example.com/.well-known/openid-configuration", // highlight-end AuthorizationEndpointQueryParams: map[string]interface{}{ // optional "someKey1": "value1", @@ -461,7 +461,7 @@ curl --location --request PUT '^{coreInjector_uri_without_quotes}//re "clientSecret": "...", "scope": ["email", "profile"] }], - "oidcDiscoveryEndpoint": "https://example.com", + "oidcDiscoveryEndpoint": "https://example.com/.well-known/openid-configuration", "authorizationEndpointQueryParams": { "someKey1": "value1", "someKey2": "value2" diff --git a/v2/thirdpartypasswordless/common-customizations/multi-tenancy/new-tenant-config.mdx b/v2/thirdpartypasswordless/common-customizations/multi-tenancy/new-tenant-config.mdx index 7d756cc6f..1e99af529 100644 --- a/v2/thirdpartypasswordless/common-customizations/multi-tenancy/new-tenant-config.mdx +++ b/v2/thirdpartypasswordless/common-customizations/multi-tenancy/new-tenant-config.mdx @@ -217,7 +217,7 @@ async function createTenant() { clientId: "...", clientSecret: "...", }], - oidcDiscoveryEndpoint: "https://login.microsoftonline.com//v2.0", + oidcDiscoveryEndpoint: "https://login.microsoftonline.com//v2.0/.well-known/openid-configuration", }); if (resp.createdNew) { @@ -250,7 +250,7 @@ func main() { ClientSecret: "...", }, }, - OIDCDiscoveryEndpoint: "https://login.microsoftonline.com//v2.0", + OIDCDiscoveryEndpoint: "https://login.microsoftonline.com//v2.0/.well-known/openid-configuration", }, nil, nil) // highlight-end @@ -351,7 +351,7 @@ curl --location --request PUT '^{coreInjector_uri_without_quotes}//re "clientSecret": "..." } ], - "oidcDiscoveryEndpoint": "https://login.microsoftonline.com//v2.0" + "oidcDiscoveryEndpoint": "https://login.microsoftonline.com//v2.0/.well-known/openid-configuration" } }' ``` diff --git a/v2/thirdpartypasswordless/common-customizations/sign-in-and-up/provider-config.mdx b/v2/thirdpartypasswordless/common-customizations/sign-in-and-up/provider-config.mdx index 16f78fdd6..d6706abc2 100644 --- a/v2/thirdpartypasswordless/common-customizations/sign-in-and-up/provider-config.mdx +++ b/v2/thirdpartypasswordless/common-customizations/sign-in-and-up/provider-config.mdx @@ -2412,7 +2412,7 @@ SuperTokens.init({ clientId: "TODO", clientSecret: "TODO" }], - oidcDiscoveryEndpoint: "https://login.microsoftonline.com//v2.0", + oidcDiscoveryEndpoint: "https://login.microsoftonline.com//v2.0/.well-known/openid-configuration", } } ] @@ -2449,7 +2449,7 @@ func main() { ClientSecret: "TODO:", }, }, - OIDCDiscoveryEndpoint: "https://login.microsoftonline.com//v2.0", + OIDCDiscoveryEndpoint: "https://login.microsoftonline.com//v2.0/.well-known/openid-configuration", }, }, }, @@ -2524,7 +2524,7 @@ async function addThirdPartyToTenant() { clientId: "...", clientSecret: "...", }], - oidcDiscoveryEndpoint: "https://login.microsoftonline.com//v2.0", + oidcDiscoveryEndpoint: "https://login.microsoftonline.com//v2.0/.well-known/openid-configuration", }); if (resp.createdNew) { @@ -2558,7 +2558,7 @@ func main() { ClientSecret: "...", }, }, - OIDCDiscoveryEndpoint: "https://login.microsoftonline.com//v2.0", + OIDCDiscoveryEndpoint: "https://login.microsoftonline.com//v2.0/.well-known/openid-configuration", }, nil) // highlight-end @@ -2662,7 +2662,7 @@ curl --location --request PUT '^{coreInjector_uri_without_quotes}//re "clientSecret": "..." } ], - "oidcDiscoveryEndpoint": "https://login.microsoftonline.com//v2.0" + "oidcDiscoveryEndpoint": "https://login.microsoftonline.com//v2.0/.well-known/openid-configuration" } }' ``` @@ -2710,7 +2710,7 @@ SuperTokens.init({ clientId: "TODO", clientSecret: "TODO" }], - oidcDiscoveryEndpoint: "https://dev-.okta.com", + oidcDiscoveryEndpoint: "https://dev-.okta.com/.well-known/openid-configuration", } } ] @@ -2747,7 +2747,7 @@ func main() { ClientSecret: "TODO:", }, }, - OIDCDiscoveryEndpoint: "https://dev-.okta.com", + OIDCDiscoveryEndpoint: "https://dev-.okta.com/.well-known/openid-configuration", }, }, }, @@ -2822,7 +2822,7 @@ async function addThirdPartyToTenant() { clientId: "...", clientSecret: "...", }], - oidcDiscoveryEndpoint: "https://dev-.okta.com", + oidcDiscoveryEndpoint: "https://dev-.okta.com/.well-known/openid-configuration", }); if (resp.createdNew) { @@ -2856,7 +2856,7 @@ func main() { ClientSecret: "...", }, }, - OIDCDiscoveryEndpoint: "https://dev-.okta.com", + OIDCDiscoveryEndpoint: "https://dev-.okta.com/.well-known/openid-configuration", }, nil) // highlight-end @@ -2960,7 +2960,7 @@ curl --location --request PUT '^{coreInjector_uri_without_quotes}//re "clientSecret": "..." } ], - "oidcDiscoveryEndpoint": "https://dev-.okta.com" + "oidcDiscoveryEndpoint": "https://dev-.okta.com/.well-known/openid-configuration" } }' ``` @@ -3298,7 +3298,7 @@ SuperTokens.init({ clientId: "TODO", clientSecret: "TODO" }], - oidcDiscoveryEndpoint: "https://gitlab.example.com", + oidcDiscoveryEndpoint: "https://gitlab.example.com/.well-known/openid-configuration", } } ] @@ -3335,7 +3335,7 @@ func main() { ClientSecret: "TODO:", }, }, - OIDCDiscoveryEndpoint: "https://gitlab.example.com", + OIDCDiscoveryEndpoint: "https://gitlab.example.com/.well-known/openid-configuration", }, }, }, @@ -3410,7 +3410,7 @@ async function addThirdPartyToTenant() { clientId: "...", clientSecret: "...", }], - oidcDiscoveryEndpoint: "https://gitlab.example.com", + oidcDiscoveryEndpoint: "https://gitlab.example.com/.well-known/openid-configuration", }); if (resp.createdNew) { @@ -3444,7 +3444,7 @@ func main() { ClientSecret: "...", }, }, - OIDCDiscoveryEndpoint: "https://gitlab.example.com", + OIDCDiscoveryEndpoint: "https://gitlab.example.com/.well-known/openid-configuration", }, nil) // highlight-end @@ -3548,7 +3548,7 @@ curl --location --request PUT '^{coreInjector_uri_without_quotes}//re "clientSecret": "..." } ], - "oidcDiscoveryEndpoint": "https://gitlab.example.com" + "oidcDiscoveryEndpoint": "https://gitlab.example.com/.well-known/openid-configuration" } }' ``` diff --git a/v2/thirdpartypasswordless/common-customizations/signup-form/custom-providers.mdx b/v2/thirdpartypasswordless/common-customizations/signup-form/custom-providers.mdx index c907fb5de..b290bf7a8 100644 --- a/v2/thirdpartypasswordless/common-customizations/signup-form/custom-providers.mdx +++ b/v2/thirdpartypasswordless/common-customizations/signup-form/custom-providers.mdx @@ -317,7 +317,7 @@ SuperTokens.init({ scope: ["profile", "email"] }], // highlight-start - oidcDiscoveryEndpoint: "https://example.com", + oidcDiscoveryEndpoint: "https://example.com/.well-known/openid-configuration", // highlight-end authorizationEndpointQueryParams: { "someKey1": "value1", @@ -368,7 +368,7 @@ func main() { }, }, // highlight-start - OIDCDiscoveryEndpoint: "https://example.com", + OIDCDiscoveryEndpoint: "https://example.com/.well-known/openid-configuration", // highlight-end AuthorizationEndpointQueryParams: map[string]interface{}{ // optional "someKey1": "value1", diff --git a/v2/thirdpartypasswordless/custom-ui/multitenant-login.mdx b/v2/thirdpartypasswordless/custom-ui/multitenant-login.mdx index 641ff9960..f71030342 100644 --- a/v2/thirdpartypasswordless/custom-ui/multitenant-login.mdx +++ b/v2/thirdpartypasswordless/custom-ui/multitenant-login.mdx @@ -248,7 +248,7 @@ async function createTenant() { clientId: "...", clientSecret: "...", }], - oidcDiscoveryEndpoint: "https://login.microsoftonline.com//v2.0", + oidcDiscoveryEndpoint: "https://login.microsoftonline.com//v2.0/.well-known/openid-configuration", }); if (resp.createdNew) { @@ -281,7 +281,7 @@ func main() { ClientSecret: "...", }, }, - OIDCDiscoveryEndpoint: "https://login.microsoftonline.com//v2.0", + OIDCDiscoveryEndpoint: "https://login.microsoftonline.com//v2.0/.well-known/openid-configuration", }, nil, nil) // highlight-end @@ -382,7 +382,7 @@ curl --location --request PUT '^{coreInjector_uri_without_quotes}//re "clientSecret": "..." } ], - "oidcDiscoveryEndpoint": "https://login.microsoftonline.com//v2.0" + "oidcDiscoveryEndpoint": "https://login.microsoftonline.com//v2.0/.well-known/openid-configuration" } }' ``` diff --git a/v2/thirdpartypasswordless/pre-built-ui/multitenant-login.mdx b/v2/thirdpartypasswordless/pre-built-ui/multitenant-login.mdx index 1347d10fb..34e9e831c 100644 --- a/v2/thirdpartypasswordless/pre-built-ui/multitenant-login.mdx +++ b/v2/thirdpartypasswordless/pre-built-ui/multitenant-login.mdx @@ -245,7 +245,7 @@ async function createTenant() { clientId: "...", clientSecret: "...", }], - oidcDiscoveryEndpoint: "https://login.microsoftonline.com//v2.0", + oidcDiscoveryEndpoint: "https://login.microsoftonline.com//v2.0/.well-known/openid-configuration", }); if (resp.createdNew) { @@ -278,7 +278,7 @@ func main() { ClientSecret: "...", }, }, - OIDCDiscoveryEndpoint: "https://login.microsoftonline.com//v2.0", + OIDCDiscoveryEndpoint: "https://login.microsoftonline.com//v2.0/.well-known/openid-configuration", }, nil, nil) // highlight-end @@ -379,7 +379,7 @@ curl --location --request PUT '^{coreInjector_uri_without_quotes}//re "clientSecret": "..." } ], - "oidcDiscoveryEndpoint": "https://login.microsoftonline.com//v2.0" + "oidcDiscoveryEndpoint": "https://login.microsoftonline.com//v2.0/.well-known/openid-configuration" } }' ``` From 54d6d0bd2eb54625c40b1af0b0094aca8d6d3075 Mon Sep 17 00:00:00 2001 From: Sattvik Chakravarthy Date: Tue, 30 Jul 2024 12:33:18 +0530 Subject: [PATCH 2/6] fix: copy --- .../common-customizations/multi-tenancy/custom-provider.mdx | 2 -- .../common-customizations/multi-tenancy/custom-provider.mdx | 2 -- .../common-customizations/multi-tenancy/custom-provider.mdx | 2 -- 3 files changed, 6 deletions(-) diff --git a/v2/thirdparty/common-customizations/multi-tenancy/custom-provider.mdx b/v2/thirdparty/common-customizations/multi-tenancy/custom-provider.mdx index 30c433fc3..51ddecf22 100644 --- a/v2/thirdparty/common-customizations/multi-tenancy/custom-provider.mdx +++ b/v2/thirdparty/common-customizations/multi-tenancy/custom-provider.mdx @@ -486,8 +486,6 @@ curl --location --request PUT '^{coreInjector_uri_without_quotes}//re - The `tenantId` is a unique ID that identifies the tenant for whom you want to add the custom provider. If not specified, it will add it for the `"public"` tenantId (which is the default one). -- Notice that `oidcDiscoveryEndpoint` doesn't have the `/.well-known/openid-configuration` appended to it. That's because our backend SDK adds this automatically, so you don't need to. - diff --git a/v2/thirdpartyemailpassword/common-customizations/multi-tenancy/custom-provider.mdx b/v2/thirdpartyemailpassword/common-customizations/multi-tenancy/custom-provider.mdx index 30c433fc3..51ddecf22 100644 --- a/v2/thirdpartyemailpassword/common-customizations/multi-tenancy/custom-provider.mdx +++ b/v2/thirdpartyemailpassword/common-customizations/multi-tenancy/custom-provider.mdx @@ -486,8 +486,6 @@ curl --location --request PUT '^{coreInjector_uri_without_quotes}//re - The `tenantId` is a unique ID that identifies the tenant for whom you want to add the custom provider. If not specified, it will add it for the `"public"` tenantId (which is the default one). -- Notice that `oidcDiscoveryEndpoint` doesn't have the `/.well-known/openid-configuration` appended to it. That's because our backend SDK adds this automatically, so you don't need to. - diff --git a/v2/thirdpartypasswordless/common-customizations/multi-tenancy/custom-provider.mdx b/v2/thirdpartypasswordless/common-customizations/multi-tenancy/custom-provider.mdx index 30c433fc3..51ddecf22 100644 --- a/v2/thirdpartypasswordless/common-customizations/multi-tenancy/custom-provider.mdx +++ b/v2/thirdpartypasswordless/common-customizations/multi-tenancy/custom-provider.mdx @@ -486,8 +486,6 @@ curl --location --request PUT '^{coreInjector_uri_without_quotes}//re - The `tenantId` is a unique ID that identifies the tenant for whom you want to add the custom provider. If not specified, it will add it for the `"public"` tenantId (which is the default one). -- Notice that `oidcDiscoveryEndpoint` doesn't have the `/.well-known/openid-configuration` appended to it. That's because our backend SDK adds this automatically, so you don't need to. - From 5e146e91972c8232c33663eddbaf9f24d7461aea Mon Sep 17 00:00:00 2001 From: Sattvik Chakravarthy Date: Tue, 30 Jul 2024 12:40:14 +0530 Subject: [PATCH 3/6] fix: go types --- .../backend-sdk-core-interceptor.mdx | 4 ++-- .../backend-sdk-core-interceptor.mdx | 4 ++-- .../backend-sdk-core-interceptor.mdx | 4 ++-- v2/src/plugins/codeTypeChecking/goEnv/go.mod | 2 +- v2/src/plugins/codeTypeChecking/goEnv/go.sum | 6 ++---- .../backend-sdk-core-interceptor.mdx | 4 ++-- .../backend-sdk-core-interceptor.mdx | 4 ++-- .../backend-sdk-core-interceptor.mdx | 4 ++-- 8 files changed, 15 insertions(+), 17 deletions(-) diff --git a/v2/emailpassword/advanced-customizations/backend-sdk-core-interceptor.mdx b/v2/emailpassword/advanced-customizations/backend-sdk-core-interceptor.mdx index b8686379c..5b17e8936 100644 --- a/v2/emailpassword/advanced-customizations/backend-sdk-core-interceptor.mdx +++ b/v2/emailpassword/advanced-customizations/backend-sdk-core-interceptor.mdx @@ -72,9 +72,9 @@ supertokens.Init(supertokens.TypeInput{ ConnectionURI: "...", APIKey: "...", // highlight-start - NetworkInterceptor: func(request *http.Request, context supertokens.UserContext) *http.Request { + NetworkInterceptor: func(request *http.Request, context supertokens.UserContext) (*http.Request, error) { log.Print("http request to core: %+v", request) - return request + return request, nil }, // highlight-end }, diff --git a/v2/passwordless/advanced-customizations/backend-sdk-core-interceptor.mdx b/v2/passwordless/advanced-customizations/backend-sdk-core-interceptor.mdx index 930142770..425545ce6 100644 --- a/v2/passwordless/advanced-customizations/backend-sdk-core-interceptor.mdx +++ b/v2/passwordless/advanced-customizations/backend-sdk-core-interceptor.mdx @@ -72,9 +72,9 @@ supertokens.Init(supertokens.TypeInput{ ConnectionURI: "...", APIKey: "...", // highlight-start - NetworkInterceptor: func(request *http.Request, context supertokens.UserContext) *http.Request { + NetworkInterceptor: func(request *http.Request, context supertokens.UserContext) (*http.Request, error) { log.Print("http request to core: %+v", request) - return request + return request, nil }, // highlight-end }, diff --git a/v2/session/advanced-customizations/backend-sdk-core-interceptor.mdx b/v2/session/advanced-customizations/backend-sdk-core-interceptor.mdx index b8686379c..5b17e8936 100644 --- a/v2/session/advanced-customizations/backend-sdk-core-interceptor.mdx +++ b/v2/session/advanced-customizations/backend-sdk-core-interceptor.mdx @@ -72,9 +72,9 @@ supertokens.Init(supertokens.TypeInput{ ConnectionURI: "...", APIKey: "...", // highlight-start - NetworkInterceptor: func(request *http.Request, context supertokens.UserContext) *http.Request { + NetworkInterceptor: func(request *http.Request, context supertokens.UserContext) (*http.Request, error) { log.Print("http request to core: %+v", request) - return request + return request, nil }, // highlight-end }, diff --git a/v2/src/plugins/codeTypeChecking/goEnv/go.mod b/v2/src/plugins/codeTypeChecking/goEnv/go.mod index d0ee8f6e1..565ce9305 100644 --- a/v2/src/plugins/codeTypeChecking/goEnv/go.mod +++ b/v2/src/plugins/codeTypeChecking/goEnv/go.mod @@ -9,7 +9,7 @@ require ( github.com/go-chi/cors v1.2.1 github.com/gorilla/handlers v1.5.1 github.com/gorilla/mux v1.8.0 - github.com/supertokens/supertokens-golang v0.20.0 + github.com/supertokens/supertokens-golang v0.24.0 ) require ( diff --git a/v2/src/plugins/codeTypeChecking/goEnv/go.sum b/v2/src/plugins/codeTypeChecking/goEnv/go.sum index 1cdcd7db1..2008c56b8 100644 --- a/v2/src/plugins/codeTypeChecking/goEnv/go.sum +++ b/v2/src/plugins/codeTypeChecking/goEnv/go.sum @@ -95,10 +95,8 @@ github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/ github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU= github.com/stretchr/testify v1.8.1 h1:w7B6lhMri9wdJUVmEZPGGhZzrYTPvgJArz7wNPgYKsk= github.com/stretchr/testify v1.8.1/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4= -github.com/supertokens/supertokens-golang v0.19.1-0.20240513063720-4180c5c039de h1:oVvV0ySs8KMJDq4ElbLN0wW8DnD8fYoc66fcHhL7TmE= -github.com/supertokens/supertokens-golang v0.19.1-0.20240513063720-4180c5c039de/go.mod h1:/n6zQ9461RscnnWB4Y4bWwzhPivnj8w79j/doqkLOs8= -github.com/supertokens/supertokens-golang v0.20.0 h1:mQHfF38UF5AWqkRPXyt1CcDUHDt/LvMwY+FCbYez2eo= -github.com/supertokens/supertokens-golang v0.20.0/go.mod h1:/n6zQ9461RscnnWB4Y4bWwzhPivnj8w79j/doqkLOs8= +github.com/supertokens/supertokens-golang v0.24.0 h1:/Y4PS72K7DHplMSskIsOBnvzpOppzFau/Y6q2X/5VeE= +github.com/supertokens/supertokens-golang v0.24.0/go.mod h1:/n6zQ9461RscnnWB4Y4bWwzhPivnj8w79j/doqkLOs8= github.com/twilio/twilio-go v0.26.0 h1:wFW4oTe3/LKt6bvByP7eio8JsjtaLHjMQKOUEzQry7U= github.com/twilio/twilio-go v0.26.0/go.mod h1:lz62Hopu4vicpQ056H5TJ0JE4AP0rS3sQ35/ejmgOwE= github.com/ugorji/go v1.2.7 h1:qYhyWUUd6WbiM+C6JZAUkIJt/1WrjzNHY9+KCIjVqTo= diff --git a/v2/thirdparty/advanced-customizations/backend-sdk-core-interceptor.mdx b/v2/thirdparty/advanced-customizations/backend-sdk-core-interceptor.mdx index 930142770..425545ce6 100644 --- a/v2/thirdparty/advanced-customizations/backend-sdk-core-interceptor.mdx +++ b/v2/thirdparty/advanced-customizations/backend-sdk-core-interceptor.mdx @@ -72,9 +72,9 @@ supertokens.Init(supertokens.TypeInput{ ConnectionURI: "...", APIKey: "...", // highlight-start - NetworkInterceptor: func(request *http.Request, context supertokens.UserContext) *http.Request { + NetworkInterceptor: func(request *http.Request, context supertokens.UserContext) (*http.Request, error) { log.Print("http request to core: %+v", request) - return request + return request, nil }, // highlight-end }, diff --git a/v2/thirdpartyemailpassword/advanced-customizations/backend-sdk-core-interceptor.mdx b/v2/thirdpartyemailpassword/advanced-customizations/backend-sdk-core-interceptor.mdx index 930142770..425545ce6 100644 --- a/v2/thirdpartyemailpassword/advanced-customizations/backend-sdk-core-interceptor.mdx +++ b/v2/thirdpartyemailpassword/advanced-customizations/backend-sdk-core-interceptor.mdx @@ -72,9 +72,9 @@ supertokens.Init(supertokens.TypeInput{ ConnectionURI: "...", APIKey: "...", // highlight-start - NetworkInterceptor: func(request *http.Request, context supertokens.UserContext) *http.Request { + NetworkInterceptor: func(request *http.Request, context supertokens.UserContext) (*http.Request, error) { log.Print("http request to core: %+v", request) - return request + return request, nil }, // highlight-end }, diff --git a/v2/thirdpartypasswordless/advanced-customizations/backend-sdk-core-interceptor.mdx b/v2/thirdpartypasswordless/advanced-customizations/backend-sdk-core-interceptor.mdx index 930142770..425545ce6 100644 --- a/v2/thirdpartypasswordless/advanced-customizations/backend-sdk-core-interceptor.mdx +++ b/v2/thirdpartypasswordless/advanced-customizations/backend-sdk-core-interceptor.mdx @@ -72,9 +72,9 @@ supertokens.Init(supertokens.TypeInput{ ConnectionURI: "...", APIKey: "...", // highlight-start - NetworkInterceptor: func(request *http.Request, context supertokens.UserContext) *http.Request { + NetworkInterceptor: func(request *http.Request, context supertokens.UserContext) (*http.Request, error) { log.Print("http request to core: %+v", request) - return request + return request, nil }, // highlight-end }, From 169afd9873a6a97744284f05b05054557ad835e7 Mon Sep 17 00:00:00 2001 From: Sattvik Chakravarthy Date: Tue, 30 Jul 2024 12:56:47 +0530 Subject: [PATCH 4/6] fix: update oidc urls for python --- .../multi-tenancy/custom-provider.mdx | 2 +- .../sign-in-and-up/custom-providers.mdx | 2 +- .../sign-in-and-up/provider-config.mdx | 18 +++++++++--------- .../multi-tenancy/custom-provider.mdx | 2 +- .../sign-in-and-up/provider-config.mdx | 18 +++++++++--------- .../signup-form/custom-providers.mdx | 2 +- .../multi-tenancy/custom-provider.mdx | 2 +- .../sign-in-and-up/provider-config.mdx | 18 +++++++++--------- .../signup-form/custom-providers.mdx | 2 +- 9 files changed, 33 insertions(+), 33 deletions(-) diff --git a/v2/thirdparty/common-customizations/multi-tenancy/custom-provider.mdx b/v2/thirdparty/common-customizations/multi-tenancy/custom-provider.mdx index 51ddecf22..222cfe4f3 100644 --- a/v2/thirdparty/common-customizations/multi-tenancy/custom-provider.mdx +++ b/v2/thirdparty/common-customizations/multi-tenancy/custom-provider.mdx @@ -418,7 +418,7 @@ async def some_func(): ), ], # highlight-start - oidc_discovery_endpoint="https://example.com", + oidc_discovery_endpoint="https://example.com/.well-known/openid-configuration", # highlight-end authorization_endpoint_query_params={ "someKey1": "value1", diff --git a/v2/thirdparty/common-customizations/sign-in-and-up/custom-providers.mdx b/v2/thirdparty/common-customizations/sign-in-and-up/custom-providers.mdx index b290bf7a8..f9861a33a 100644 --- a/v2/thirdparty/common-customizations/sign-in-and-up/custom-providers.mdx +++ b/v2/thirdparty/common-customizations/sign-in-and-up/custom-providers.mdx @@ -420,7 +420,7 @@ init( scope=["email", "profile"], ), ], - oidc_discovery_endpoint="https://example.com", + oidc_discovery_endpoint="https://example.com/.well-known/openid-configuration", authorization_endpoint_query_params={ "someKey1": "value1", "someKey2": None, diff --git a/v2/thirdparty/common-customizations/sign-in-and-up/provider-config.mdx b/v2/thirdparty/common-customizations/sign-in-and-up/provider-config.mdx index d6706abc2..8ae9b51c9 100644 --- a/v2/thirdparty/common-customizations/sign-in-and-up/provider-config.mdx +++ b/v2/thirdparty/common-customizations/sign-in-and-up/provider-config.mdx @@ -2488,7 +2488,7 @@ init( client_secret="TODO:", ), ], - oidc_discovery_endpoint="https://login.microsoftonline.com//v2.0", + oidc_discovery_endpoint="https://login.microsoftonline.com//v2.0/.well-known/openid-configuration", ), ), ] @@ -2596,7 +2596,7 @@ async def some_func(): client_secret="...", ), ], - oidc_discovery_endpoint="https://login.microsoftonline.com//v2.0", + oidc_discovery_endpoint="https://login.microsoftonline.com//v2.0/.well-known/openid-configuration", )) if result.status != "OK": @@ -2627,7 +2627,7 @@ result = create_or_update_third_party_config(tenant_id, ProviderConfig( client_secret="...", ), ], - oidc_discovery_endpoint="https://login.microsoftonline.com//v2.0", + oidc_discovery_endpoint="https://login.microsoftonline.com//v2.0/.well-known/openid-configuration", )) if result.status != "OK": @@ -2786,7 +2786,7 @@ init( client_secret="TODO:", ), ], - oidc_discovery_endpoint="https://dev-.okta.com", + oidc_discovery_endpoint="https://dev-.okta.com/.well-known/openid-configuration", ), ), ] @@ -2894,7 +2894,7 @@ async def some_func(): client_secret="...", ), ], - oidc_discovery_endpoint="https://dev-.okta.com", + oidc_discovery_endpoint="https://dev-.okta.com/.well-known/openid-configuration", )) if result.status != "OK": @@ -2925,7 +2925,7 @@ result = create_or_update_third_party_config(tenant_id, ProviderConfig( client_secret="...", ), ], - oidc_discovery_endpoint="https://dev-.okta.com", + oidc_discovery_endpoint="https://dev-.okta.com/.well-known/openid-configuration", )) if result.status != "OK": @@ -3374,7 +3374,7 @@ init( client_secret="TODO:", ), ], - oidc_discovery_endpoint="https://gitlab.example.com" + oidc_discovery_endpoint="https://gitlab.example.com/.well-known/openid-configuration" ), ), ] @@ -3482,7 +3482,7 @@ async def some_func(): client_secret="...", ), ], - oidc_discovery_endpoint="https://gitlab.example.com" + oidc_discovery_endpoint="https://gitlab.example.com/.well-known/openid-configuration" )) if result.status != "OK": @@ -3513,7 +3513,7 @@ result = create_or_update_third_party_config(tenant_id, ProviderConfig( client_secret="...", ), ], - oidc_discovery_endpoint="https://gitlab.example.com" + oidc_discovery_endpoint="https://gitlab.example.com/.well-known/openid-configuration" )) if result.status != "OK": diff --git a/v2/thirdpartyemailpassword/common-customizations/multi-tenancy/custom-provider.mdx b/v2/thirdpartyemailpassword/common-customizations/multi-tenancy/custom-provider.mdx index 51ddecf22..222cfe4f3 100644 --- a/v2/thirdpartyemailpassword/common-customizations/multi-tenancy/custom-provider.mdx +++ b/v2/thirdpartyemailpassword/common-customizations/multi-tenancy/custom-provider.mdx @@ -418,7 +418,7 @@ async def some_func(): ), ], # highlight-start - oidc_discovery_endpoint="https://example.com", + oidc_discovery_endpoint="https://example.com/.well-known/openid-configuration", # highlight-end authorization_endpoint_query_params={ "someKey1": "value1", diff --git a/v2/thirdpartyemailpassword/common-customizations/sign-in-and-up/provider-config.mdx b/v2/thirdpartyemailpassword/common-customizations/sign-in-and-up/provider-config.mdx index d6706abc2..8ae9b51c9 100644 --- a/v2/thirdpartyemailpassword/common-customizations/sign-in-and-up/provider-config.mdx +++ b/v2/thirdpartyemailpassword/common-customizations/sign-in-and-up/provider-config.mdx @@ -2488,7 +2488,7 @@ init( client_secret="TODO:", ), ], - oidc_discovery_endpoint="https://login.microsoftonline.com//v2.0", + oidc_discovery_endpoint="https://login.microsoftonline.com//v2.0/.well-known/openid-configuration", ), ), ] @@ -2596,7 +2596,7 @@ async def some_func(): client_secret="...", ), ], - oidc_discovery_endpoint="https://login.microsoftonline.com//v2.0", + oidc_discovery_endpoint="https://login.microsoftonline.com//v2.0/.well-known/openid-configuration", )) if result.status != "OK": @@ -2627,7 +2627,7 @@ result = create_or_update_third_party_config(tenant_id, ProviderConfig( client_secret="...", ), ], - oidc_discovery_endpoint="https://login.microsoftonline.com//v2.0", + oidc_discovery_endpoint="https://login.microsoftonline.com//v2.0/.well-known/openid-configuration", )) if result.status != "OK": @@ -2786,7 +2786,7 @@ init( client_secret="TODO:", ), ], - oidc_discovery_endpoint="https://dev-.okta.com", + oidc_discovery_endpoint="https://dev-.okta.com/.well-known/openid-configuration", ), ), ] @@ -2894,7 +2894,7 @@ async def some_func(): client_secret="...", ), ], - oidc_discovery_endpoint="https://dev-.okta.com", + oidc_discovery_endpoint="https://dev-.okta.com/.well-known/openid-configuration", )) if result.status != "OK": @@ -2925,7 +2925,7 @@ result = create_or_update_third_party_config(tenant_id, ProviderConfig( client_secret="...", ), ], - oidc_discovery_endpoint="https://dev-.okta.com", + oidc_discovery_endpoint="https://dev-.okta.com/.well-known/openid-configuration", )) if result.status != "OK": @@ -3374,7 +3374,7 @@ init( client_secret="TODO:", ), ], - oidc_discovery_endpoint="https://gitlab.example.com" + oidc_discovery_endpoint="https://gitlab.example.com/.well-known/openid-configuration" ), ), ] @@ -3482,7 +3482,7 @@ async def some_func(): client_secret="...", ), ], - oidc_discovery_endpoint="https://gitlab.example.com" + oidc_discovery_endpoint="https://gitlab.example.com/.well-known/openid-configuration" )) if result.status != "OK": @@ -3513,7 +3513,7 @@ result = create_or_update_third_party_config(tenant_id, ProviderConfig( client_secret="...", ), ], - oidc_discovery_endpoint="https://gitlab.example.com" + oidc_discovery_endpoint="https://gitlab.example.com/.well-known/openid-configuration" )) if result.status != "OK": diff --git a/v2/thirdpartyemailpassword/common-customizations/signup-form/custom-providers.mdx b/v2/thirdpartyemailpassword/common-customizations/signup-form/custom-providers.mdx index b290bf7a8..f9861a33a 100644 --- a/v2/thirdpartyemailpassword/common-customizations/signup-form/custom-providers.mdx +++ b/v2/thirdpartyemailpassword/common-customizations/signup-form/custom-providers.mdx @@ -420,7 +420,7 @@ init( scope=["email", "profile"], ), ], - oidc_discovery_endpoint="https://example.com", + oidc_discovery_endpoint="https://example.com/.well-known/openid-configuration", authorization_endpoint_query_params={ "someKey1": "value1", "someKey2": None, diff --git a/v2/thirdpartypasswordless/common-customizations/multi-tenancy/custom-provider.mdx b/v2/thirdpartypasswordless/common-customizations/multi-tenancy/custom-provider.mdx index 51ddecf22..222cfe4f3 100644 --- a/v2/thirdpartypasswordless/common-customizations/multi-tenancy/custom-provider.mdx +++ b/v2/thirdpartypasswordless/common-customizations/multi-tenancy/custom-provider.mdx @@ -418,7 +418,7 @@ async def some_func(): ), ], # highlight-start - oidc_discovery_endpoint="https://example.com", + oidc_discovery_endpoint="https://example.com/.well-known/openid-configuration", # highlight-end authorization_endpoint_query_params={ "someKey1": "value1", diff --git a/v2/thirdpartypasswordless/common-customizations/sign-in-and-up/provider-config.mdx b/v2/thirdpartypasswordless/common-customizations/sign-in-and-up/provider-config.mdx index d6706abc2..8ae9b51c9 100644 --- a/v2/thirdpartypasswordless/common-customizations/sign-in-and-up/provider-config.mdx +++ b/v2/thirdpartypasswordless/common-customizations/sign-in-and-up/provider-config.mdx @@ -2488,7 +2488,7 @@ init( client_secret="TODO:", ), ], - oidc_discovery_endpoint="https://login.microsoftonline.com//v2.0", + oidc_discovery_endpoint="https://login.microsoftonline.com//v2.0/.well-known/openid-configuration", ), ), ] @@ -2596,7 +2596,7 @@ async def some_func(): client_secret="...", ), ], - oidc_discovery_endpoint="https://login.microsoftonline.com//v2.0", + oidc_discovery_endpoint="https://login.microsoftonline.com//v2.0/.well-known/openid-configuration", )) if result.status != "OK": @@ -2627,7 +2627,7 @@ result = create_or_update_third_party_config(tenant_id, ProviderConfig( client_secret="...", ), ], - oidc_discovery_endpoint="https://login.microsoftonline.com//v2.0", + oidc_discovery_endpoint="https://login.microsoftonline.com//v2.0/.well-known/openid-configuration", )) if result.status != "OK": @@ -2786,7 +2786,7 @@ init( client_secret="TODO:", ), ], - oidc_discovery_endpoint="https://dev-.okta.com", + oidc_discovery_endpoint="https://dev-.okta.com/.well-known/openid-configuration", ), ), ] @@ -2894,7 +2894,7 @@ async def some_func(): client_secret="...", ), ], - oidc_discovery_endpoint="https://dev-.okta.com", + oidc_discovery_endpoint="https://dev-.okta.com/.well-known/openid-configuration", )) if result.status != "OK": @@ -2925,7 +2925,7 @@ result = create_or_update_third_party_config(tenant_id, ProviderConfig( client_secret="...", ), ], - oidc_discovery_endpoint="https://dev-.okta.com", + oidc_discovery_endpoint="https://dev-.okta.com/.well-known/openid-configuration", )) if result.status != "OK": @@ -3374,7 +3374,7 @@ init( client_secret="TODO:", ), ], - oidc_discovery_endpoint="https://gitlab.example.com" + oidc_discovery_endpoint="https://gitlab.example.com/.well-known/openid-configuration" ), ), ] @@ -3482,7 +3482,7 @@ async def some_func(): client_secret="...", ), ], - oidc_discovery_endpoint="https://gitlab.example.com" + oidc_discovery_endpoint="https://gitlab.example.com/.well-known/openid-configuration" )) if result.status != "OK": @@ -3513,7 +3513,7 @@ result = create_or_update_third_party_config(tenant_id, ProviderConfig( client_secret="...", ), ], - oidc_discovery_endpoint="https://gitlab.example.com" + oidc_discovery_endpoint="https://gitlab.example.com/.well-known/openid-configuration" )) if result.status != "OK": diff --git a/v2/thirdpartypasswordless/common-customizations/signup-form/custom-providers.mdx b/v2/thirdpartypasswordless/common-customizations/signup-form/custom-providers.mdx index b290bf7a8..f9861a33a 100644 --- a/v2/thirdpartypasswordless/common-customizations/signup-form/custom-providers.mdx +++ b/v2/thirdpartypasswordless/common-customizations/signup-form/custom-providers.mdx @@ -420,7 +420,7 @@ init( scope=["email", "profile"], ), ], - oidc_discovery_endpoint="https://example.com", + oidc_discovery_endpoint="https://example.com/.well-known/openid-configuration", authorization_endpoint_query_params={ "someKey1": "value1", "someKey2": None, From 49aeaf60c60a624e7013fd3a5298b390f4f92cc4 Mon Sep 17 00:00:00 2001 From: Sattvik Chakravarthy Date: Tue, 30 Jul 2024 13:02:19 +0530 Subject: [PATCH 5/6] fix: python snippet in new tenant config --- .../common-customizations/multi-tenancy/new-tenant-config.mdx | 3 ++- v2/thirdparty/custom-ui/multitenant-login.mdx | 3 ++- v2/thirdparty/pre-built-ui/multitenant-login.mdx | 3 ++- .../common-customizations/multi-tenancy/new-tenant-config.mdx | 3 ++- v2/thirdpartyemailpassword/custom-ui/multitenant-login.mdx | 3 ++- v2/thirdpartyemailpassword/pre-built-ui/multitenant-login.mdx | 3 ++- .../common-customizations/multi-tenancy/new-tenant-config.mdx | 3 ++- v2/thirdpartypasswordless/custom-ui/multitenant-login.mdx | 3 ++- v2/thirdpartypasswordless/pre-built-ui/multitenant-login.mdx | 3 ++- 9 files changed, 18 insertions(+), 9 deletions(-) diff --git a/v2/thirdparty/common-customizations/multi-tenancy/new-tenant-config.mdx b/v2/thirdparty/common-customizations/multi-tenancy/new-tenant-config.mdx index a0d312ec5..a3ab85666 100644 --- a/v2/thirdparty/common-customizations/multi-tenancy/new-tenant-config.mdx +++ b/v2/thirdparty/common-customizations/multi-tenancy/new-tenant-config.mdx @@ -262,7 +262,8 @@ async def update_tenant(): client_id="...", client_secret="...", ) - ] + ], + oidc_discovery_endpoint="https://login.microsoftonline.com//v2.0/.well-known/openid-configuration", ), ) diff --git a/v2/thirdparty/custom-ui/multitenant-login.mdx b/v2/thirdparty/custom-ui/multitenant-login.mdx index 2c77df6a4..f9458099a 100644 --- a/v2/thirdparty/custom-ui/multitenant-login.mdx +++ b/v2/thirdparty/custom-ui/multitenant-login.mdx @@ -293,7 +293,8 @@ async def update_tenant(): client_id="...", client_secret="...", ) - ] + ], + oidc_discovery_endpoint="https://login.microsoftonline.com//v2.0/.well-known/openid-configuration", ), ) diff --git a/v2/thirdparty/pre-built-ui/multitenant-login.mdx b/v2/thirdparty/pre-built-ui/multitenant-login.mdx index 1b3d084cb..e2efdd10b 100644 --- a/v2/thirdparty/pre-built-ui/multitenant-login.mdx +++ b/v2/thirdparty/pre-built-ui/multitenant-login.mdx @@ -290,7 +290,8 @@ async def update_tenant(): client_id="...", client_secret="...", ) - ] + ], + oidc_discovery_endpoint="https://login.microsoftonline.com//v2.0/.well-known/openid-configuration", ), ) diff --git a/v2/thirdpartyemailpassword/common-customizations/multi-tenancy/new-tenant-config.mdx b/v2/thirdpartyemailpassword/common-customizations/multi-tenancy/new-tenant-config.mdx index 9abe27e56..373f6bce8 100644 --- a/v2/thirdpartyemailpassword/common-customizations/multi-tenancy/new-tenant-config.mdx +++ b/v2/thirdpartyemailpassword/common-customizations/multi-tenancy/new-tenant-config.mdx @@ -277,7 +277,8 @@ async def update_tenant(): client_id="...", client_secret="...", ) - ] + ], + oidc_discovery_endpoint="https://login.microsoftonline.com//v2.0/.well-known/openid-configuration", ), ) diff --git a/v2/thirdpartyemailpassword/custom-ui/multitenant-login.mdx b/v2/thirdpartyemailpassword/custom-ui/multitenant-login.mdx index a68a19efa..4dbd5437d 100644 --- a/v2/thirdpartyemailpassword/custom-ui/multitenant-login.mdx +++ b/v2/thirdpartyemailpassword/custom-ui/multitenant-login.mdx @@ -308,7 +308,8 @@ async def update_tenant(): client_id="...", client_secret="...", ) - ] + ], + oidc_discovery_endpoint="https://login.microsoftonline.com//v2.0/.well-known/openid-configuration", ), ) diff --git a/v2/thirdpartyemailpassword/pre-built-ui/multitenant-login.mdx b/v2/thirdpartyemailpassword/pre-built-ui/multitenant-login.mdx index c0adcac7c..04eae5d2f 100644 --- a/v2/thirdpartyemailpassword/pre-built-ui/multitenant-login.mdx +++ b/v2/thirdpartyemailpassword/pre-built-ui/multitenant-login.mdx @@ -305,7 +305,8 @@ async def update_tenant(): client_id="...", client_secret="...", ) - ] + ], + oidc_discovery_endpoint="https://login.microsoftonline.com//v2.0/.well-known/openid-configuration", ), ) diff --git a/v2/thirdpartypasswordless/common-customizations/multi-tenancy/new-tenant-config.mdx b/v2/thirdpartypasswordless/common-customizations/multi-tenancy/new-tenant-config.mdx index 1e99af529..3bdc6753a 100644 --- a/v2/thirdpartypasswordless/common-customizations/multi-tenancy/new-tenant-config.mdx +++ b/v2/thirdpartypasswordless/common-customizations/multi-tenancy/new-tenant-config.mdx @@ -286,7 +286,8 @@ async def update_tenant(): client_id="...", client_secret="...", ) - ] + ], + oidc_discovery_endpoint="https://login.microsoftonline.com//v2.0/.well-known/openid-configuration", ), ) diff --git a/v2/thirdpartypasswordless/custom-ui/multitenant-login.mdx b/v2/thirdpartypasswordless/custom-ui/multitenant-login.mdx index f71030342..1f56359ab 100644 --- a/v2/thirdpartypasswordless/custom-ui/multitenant-login.mdx +++ b/v2/thirdpartypasswordless/custom-ui/multitenant-login.mdx @@ -317,7 +317,8 @@ async def update_tenant(): client_id="...", client_secret="...", ) - ] + ], + oidc_discovery_endpoint="https://login.microsoftonline.com//v2.0/.well-known/openid-configuration", ), ) diff --git a/v2/thirdpartypasswordless/pre-built-ui/multitenant-login.mdx b/v2/thirdpartypasswordless/pre-built-ui/multitenant-login.mdx index 34e9e831c..5e89f564d 100644 --- a/v2/thirdpartypasswordless/pre-built-ui/multitenant-login.mdx +++ b/v2/thirdpartypasswordless/pre-built-ui/multitenant-login.mdx @@ -314,7 +314,8 @@ async def update_tenant(): client_id="...", client_secret="...", ) - ] + ], + oidc_discovery_endpoint="https://login.microsoftonline.com//v2.0/.well-known/openid-configuration", ), ) From f931e54494b93c4fecf51397dc771fb11e8c5102 Mon Sep 17 00:00:00 2001 From: Sattvik Chakravarthy Date: Tue, 30 Jul 2024 13:16:58 +0530 Subject: [PATCH 6/6] fix: node version --- v2/src/plugins/codeTypeChecking/jsEnv/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/v2/src/plugins/codeTypeChecking/jsEnv/package.json b/v2/src/plugins/codeTypeChecking/jsEnv/package.json index 1fbae3c88..949fb3043 100644 --- a/v2/src/plugins/codeTypeChecking/jsEnv/package.json +++ b/v2/src/plugins/codeTypeChecking/jsEnv/package.json @@ -56,7 +56,7 @@ "socket.io": "^4.6.1", "socketio": "^1.0.0", "supertokens-auth-react": "^0.42.0", - "supertokens-node": "^19.0.0", + "supertokens-node": "^20.0.0", "supertokens-node7": "npm:supertokens-node@7.3", "supertokens-react-native": "^5.0.0", "supertokens-web-js": "^0.12.0",