Skip to content

Commit

Permalink
fixes to oidc endpoint docs
Browse files Browse the repository at this point in the history
  • Loading branch information
rishabhpoddar committed Oct 25, 2023
1 parent c5563d7 commit dafa8e3
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ async function createTenant() {
scope: ["email", "profile"]
}],
// highlight-start
oidcDiscoveryEndpoint: "https://example.com/.well-known/openid-configuration",
oidcDiscoveryEndpoint: "https://example.com",
// highlight-end
authorizationEndpointQueryParams: { // optional
"someKey1": "value1",
Expand Down Expand Up @@ -372,7 +372,7 @@ func main() {
},
},
// highlight-start
OIDCDiscoveryEndpoint: "https://example.com/.well-known/openid-configuration",
OIDCDiscoveryEndpoint: "https://example.com",
// highlight-end
AuthorizationEndpointQueryParams: map[string]interface{}{ // optional
"someKey1": "value1",
Expand Down Expand Up @@ -418,7 +418,7 @@ async def some_func():
),
],
# highlight-start
oidc_discovery_endpoint="https://example.com/.well-known/openid-configuration",
oidc_discovery_endpoint="https://example.com",
# highlight-end
authorization_endpoint_query_params={
"someKey1": "value1",
Expand Down Expand Up @@ -461,7 +461,7 @@ curl --location --request PUT '^{coreInjector_uri_without_quotes}/<TENANT_ID>/re
"clientSecret": "...",
"scope": ["email", "profile"],
}],
"oidcDiscoveryEndpoint": "https://example.com/.well-known/openid-configuration",
"oidcDiscoveryEndpoint": "https://example.com",
"authorizationEndpointQueryParams": {
"someKey1": "value1",
"someKey2": "value2"
Expand All @@ -486,6 +486,8 @@ curl --location --request PUT '^{coreInjector_uri_without_quotes}/<TENANT_ID>/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.

<!-- END COPY SECTION -->

<!-- COPY SECTION -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ SuperTokens.init({
scope: ["profile", "email"]
}],
// highlight-start
oidcDiscoveryEndpoint: "https://example.com/.well-known/openid-configuration",
oidcDiscoveryEndpoint: "https://example.com",
// highlight-end
authorizationEndpointQueryParams: {
"someKey1": "value1",
Expand Down Expand Up @@ -373,7 +373,7 @@ func main() {
},
},
// highlight-start
OIDCDiscoveryEndpoint: "https://example.com/.well-known/openid-configuration",
OIDCDiscoveryEndpoint: "https://example.com",
// highlight-end
AuthorizationEndpointQueryParams: map[string]interface{}{ // optional
"someKey1": "value1",
Expand Down Expand Up @@ -426,7 +426,7 @@ init(
scope=["email", "profile"],
),
],
oidc_discovery_endpoint="https://example.com/.well-known/openid-configuration",
oidc_discovery_endpoint="https://example.com",
authorization_endpoint_query_params={
"someKey1": "value1",
"someKey2": None,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ async function createTenant() {
scope: ["email", "profile"]
}],
// highlight-start
oidcDiscoveryEndpoint: "https://example.com/.well-known/openid-configuration",
oidcDiscoveryEndpoint: "https://example.com",
// highlight-end
authorizationEndpointQueryParams: { // optional
"someKey1": "value1",
Expand Down Expand Up @@ -372,7 +372,7 @@ func main() {
},
},
// highlight-start
OIDCDiscoveryEndpoint: "https://example.com/.well-known/openid-configuration",
OIDCDiscoveryEndpoint: "https://example.com",
// highlight-end
AuthorizationEndpointQueryParams: map[string]interface{}{ // optional
"someKey1": "value1",
Expand Down Expand Up @@ -418,7 +418,7 @@ async def some_func():
),
],
# highlight-start
oidc_discovery_endpoint="https://example.com/.well-known/openid-configuration",
oidc_discovery_endpoint="https://example.com",
# highlight-end
authorization_endpoint_query_params={
"someKey1": "value1",
Expand Down Expand Up @@ -461,7 +461,7 @@ curl --location --request PUT '^{coreInjector_uri_without_quotes}/<TENANT_ID>/re
"clientSecret": "...",
"scope": ["email", "profile"],
}],
"oidcDiscoveryEndpoint": "https://example.com/.well-known/openid-configuration",
"oidcDiscoveryEndpoint": "https://example.com",
"authorizationEndpointQueryParams": {
"someKey1": "value1",
"someKey2": "value2"
Expand All @@ -486,6 +486,8 @@ curl --location --request PUT '^{coreInjector_uri_without_quotes}/<TENANT_ID>/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.

<!-- END COPY SECTION -->

<!-- COPY SECTION -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ SuperTokens.init({
scope: ["profile", "email"]
}],
// highlight-start
oidcDiscoveryEndpoint: "https://example.com/.well-known/openid-configuration",
oidcDiscoveryEndpoint: "https://example.com",
// highlight-end
authorizationEndpointQueryParams: {
"someKey1": "value1",
Expand Down Expand Up @@ -373,7 +373,7 @@ func main() {
},
},
// highlight-start
OIDCDiscoveryEndpoint: "https://example.com/.well-known/openid-configuration",
OIDCDiscoveryEndpoint: "https://example.com",
// highlight-end
AuthorizationEndpointQueryParams: map[string]interface{}{ // optional
"someKey1": "value1",
Expand Down Expand Up @@ -426,7 +426,7 @@ init(
scope=["email", "profile"],
),
],
oidc_discovery_endpoint="https://example.com/.well-known/openid-configuration",
oidc_discovery_endpoint="https://example.com",
authorization_endpoint_query_params={
"someKey1": "value1",
"someKey2": None,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ async function createTenant() {
scope: ["email", "profile"]
}],
// highlight-start
oidcDiscoveryEndpoint: "https://example.com/.well-known/openid-configuration",
oidcDiscoveryEndpoint: "https://example.com",
// highlight-end
authorizationEndpointQueryParams: { // optional
"someKey1": "value1",
Expand Down Expand Up @@ -372,7 +372,7 @@ func main() {
},
},
// highlight-start
OIDCDiscoveryEndpoint: "https://example.com/.well-known/openid-configuration",
OIDCDiscoveryEndpoint: "https://example.com",
// highlight-end
AuthorizationEndpointQueryParams: map[string]interface{}{ // optional
"someKey1": "value1",
Expand Down Expand Up @@ -418,7 +418,7 @@ async def some_func():
),
],
# highlight-start
oidc_discovery_endpoint="https://example.com/.well-known/openid-configuration",
oidc_discovery_endpoint="https://example.com",
# highlight-end
authorization_endpoint_query_params={
"someKey1": "value1",
Expand Down Expand Up @@ -461,7 +461,7 @@ curl --location --request PUT '^{coreInjector_uri_without_quotes}/<TENANT_ID>/re
"clientSecret": "...",
"scope": ["email", "profile"],
}],
"oidcDiscoveryEndpoint": "https://example.com/.well-known/openid-configuration",
"oidcDiscoveryEndpoint": "https://example.com",
"authorizationEndpointQueryParams": {
"someKey1": "value1",
"someKey2": "value2"
Expand All @@ -486,6 +486,8 @@ curl --location --request PUT '^{coreInjector_uri_without_quotes}/<TENANT_ID>/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.

<!-- END COPY SECTION -->

<!-- COPY SECTION -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ SuperTokens.init({
scope: ["profile", "email"]
}],
// highlight-start
oidcDiscoveryEndpoint: "https://example.com/.well-known/openid-configuration",
oidcDiscoveryEndpoint: "https://example.com",
// highlight-end
authorizationEndpointQueryParams: {
"someKey1": "value1",
Expand Down Expand Up @@ -373,7 +373,7 @@ func main() {
},
},
// highlight-start
OIDCDiscoveryEndpoint: "https://example.com/.well-known/openid-configuration",
OIDCDiscoveryEndpoint: "https://example.com",
// highlight-end
AuthorizationEndpointQueryParams: map[string]interface{}{ // optional
"someKey1": "value1",
Expand Down Expand Up @@ -426,7 +426,7 @@ init(
scope=["email", "profile"],
),
],
oidc_discovery_endpoint="https://example.com/.well-known/openid-configuration",
oidc_discovery_endpoint="https://example.com",
authorization_endpoint_query_params={
"someKey1": "value1",
"someKey2": None,
Expand Down

0 comments on commit dafa8e3

Please sign in to comment.