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/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", 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/thirdparty/common-customizations/multi-tenancy/custom-provider.mdx b/v2/thirdparty/common-customizations/multi-tenancy/custom-provider.mdx index fda542afe..222cfe4f3 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", @@ -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", @@ -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" @@ -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/thirdparty/common-customizations/multi-tenancy/new-tenant-config.mdx b/v2/thirdparty/common-customizations/multi-tenancy/new-tenant-config.mdx index 0ec030789..a3ab85666 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 @@ -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", ), ) @@ -327,7 +328,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..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 @@ -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", @@ -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 16f78fdd6..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 @@ -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", }, }, }, @@ -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", ), ), ] @@ -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 @@ -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": @@ -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", }, }, }, @@ -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", ), ), ] @@ -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 @@ -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": @@ -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", }, }, }, @@ -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" ), ), ] @@ -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 @@ -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": @@ -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..f9458099a 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 @@ -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", ), ) @@ -358,7 +359,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..e2efdd10b 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 @@ -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", ), ) @@ -355,7 +356,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/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/thirdpartyemailpassword/common-customizations/multi-tenancy/custom-provider.mdx b/v2/thirdpartyemailpassword/common-customizations/multi-tenancy/custom-provider.mdx index fda542afe..222cfe4f3 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", @@ -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", @@ -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" @@ -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/new-tenant-config.mdx b/v2/thirdpartyemailpassword/common-customizations/multi-tenancy/new-tenant-config.mdx index a942891a9..373f6bce8 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 @@ -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", ), ) @@ -342,7 +343,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..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 @@ -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", }, }, }, @@ -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", ), ), ] @@ -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 @@ -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": @@ -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", }, }, }, @@ -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", ), ), ] @@ -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 @@ -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": @@ -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", }, }, }, @@ -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" ), ), ] @@ -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 @@ -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": @@ -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..f9861a33a 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", @@ -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/thirdpartyemailpassword/custom-ui/multitenant-login.mdx b/v2/thirdpartyemailpassword/custom-ui/multitenant-login.mdx index 7f4bc394b..4dbd5437d 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 @@ -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", ), ) @@ -373,7 +374,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..04eae5d2f 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 @@ -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", ), ) @@ -370,7 +371,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/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 }, diff --git a/v2/thirdpartypasswordless/common-customizations/multi-tenancy/custom-provider.mdx b/v2/thirdpartypasswordless/common-customizations/multi-tenancy/custom-provider.mdx index fda542afe..222cfe4f3 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", @@ -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", @@ -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" @@ -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/new-tenant-config.mdx b/v2/thirdpartypasswordless/common-customizations/multi-tenancy/new-tenant-config.mdx index 7d756cc6f..3bdc6753a 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 @@ -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", ), ) @@ -351,7 +352,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..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 @@ -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", }, }, }, @@ -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", ), ), ] @@ -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 @@ -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": @@ -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", }, }, }, @@ -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", ), ), ] @@ -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 @@ -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": @@ -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", }, }, }, @@ -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" ), ), ] @@ -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 @@ -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": @@ -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..f9861a33a 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", @@ -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/custom-ui/multitenant-login.mdx b/v2/thirdpartypasswordless/custom-ui/multitenant-login.mdx index 641ff9960..1f56359ab 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 @@ -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", ), ) @@ -382,7 +383,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..5e89f564d 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 @@ -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", ), ) @@ -379,7 +380,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" } }' ```