Skip to content

Commit bcc1c23

Browse files
authored
Merge pull request #235 from apollographql/auth-placeholder
docs: update curl command placeholders
2 parents ef246f6 + 062016c commit bcc1c23

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

docs/source/guides/auth.mdx

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -62,17 +62,18 @@ This guide uses [Auth0](https://auth0.com/) as the Identity Provider.
6262

6363
The Auth0 Connection is the method clients use to authenticate. This guide uses the default **Username-Password-Authentication** connection.
6464

65-
1. In your dashboard, navigate to **Authentication** -> **Database**.
66-
1. Create the default **Username-Password-Authentication** connection. Click the **Try Connection** button to test it.
67-
1. Copy the **Connection Identifier** at the top of the page, you need it for the next step. It should start with something like `con_`.
65+
1. In your Auth0 dashboard, navigate to **Authentication** -> **Database**.
66+
1. Create the default **Username-Password-Authentication** connection. Click the **Try Connection** button to test it and set up a username and password for later.
67+
1. Back on your Auth0 dashboard, note the **Connection Identifier** at the top of the page. It should start with something like `con_`. Copy it into a temporary location. This guide refers to it as `<CONNECTION ID>`.
6868
1. Navigate to **Applications** -> **APIs** -> **Auth0 Management API**.
69-
1. Click the **API Explorer** tab. Copy the token value, you also need it for the next step.
70-
1. Run the following `curl` command to promote the connection to domain-level, replacing `CONNECTION_ID` and `MGMT_API_ACCESS_TOKEN` with the values you copied in the previous steps:
69+
1. Copy the **Identifier** for the Auth0 Management API to a temporary location. It should look something like `dev-123456.us.auth0.com`, where `dev-123456` is your Auth0 tenant ID. This guide refers to it as `<AUTH0 DOMAIN>`.
70+
1. Click the **API Explorer** tab. Copy the token value to a temporary location. This guide refers to it as `<MGMT API ACCESS TOKEN>`.
71+
1. Run the following `curl` command to promote the connection to domain level, replacing `<CONNECTION ID>`, `<AUTH0 DOMAIN>`, and `<MGMT API ACCESS TOKEN>` with the values you copied in the previous steps:
7172

7273
```sh
7374
curl --request PATCH \
74-
--url 'https://dev-p7nxaluy3f2ss4js.us.auth0.com/api/v2/connections/CONNECTION_ID' \
75-
--header 'authorization: Bearer MGMT_API_ACCESS_TOKEN' \
75+
--url 'https://<AUTH0 DOMAIN>/api/v2/connections/<CONNECTION ID>' \
76+
--header 'authorization: Bearer <MGMT API ACCESS TOKEN>' \
7677
--header 'cache-control: no-cache' \
7778
--header 'content-type: application/json' \
7879
--data '{ "is_domain_connection": true }'
@@ -102,7 +103,7 @@ Configure the MCP server to use the Auth0 instance for authentication.
102103
- read:users # Adjust scopes as needed
103104
```
104105
105-
1. Replace the `<AUTH0 DOMAIN>` with your own Auth0 domain. It should look something like `dev-123456.us.auth0.com`, where `dev-123456` is your Auth0 tenant ID.
106+
1. Replace the `<AUTH0 DOMAIN>` with your own Auth0 domain from earlier.
106107

107108
1. Replace the `<AUTH0 DEFAULT AUDIENCE>` with the matching `Identifier` you set when creating the Auth0 API. In this guide, you used `http://localhost:5000/mcp-example`.
108109

@@ -154,7 +155,7 @@ You need a graph's credentials and a valid GraphOS plan to use the router's auth
154155

155156
Note: You don't need to run this command.
156157

157-
1. Retrieve the values for `YOUR_APOLLO_KEY` and `YOUR_APOLLO_GRAPH_REF`.
158+
1. Retrieve the values for `YOUR_APOLLO_KEY` and `YOUR_APOLLO_GRAPH_REF` from the modal and click **Finish later**.
158159

159160
#### Run the MCP Server and router
160161

0 commit comments

Comments
 (0)