You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: auth4genai/snippets/get-started/langchain-fastapi-py/call-others-api.mdx
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -56,7 +56,7 @@ OPENAI_API_KEY="YOUR_API_KEY"
56
56
LANGGRAPH_API_URL=http://localhost:54367
57
57
```
58
58
59
-
To get your Auth0 application's `AUTH0_DOMAIN`, `AUTH0_CLIENT_ID`, and `AUTH0_CLIENT_SECRET`, navigate to the **Settings** tab in the Auth0 Dashboard. You'll find these values in the **Basic Information** section at the top.
59
+
To get your Auth0 application's `AUTH0_DOMAIN`, `AUTH0_CLIENT_ID`, and `AUTH0_CLIENT_SECRET`, navigate to <strong>Applications > Applications </strong> in the Auth0 Dashboard and select your client application. You'll find these values in the **Basic Information** section at the top.
60
60
Copy each value to the matching setting.
61
61
62
62
Next, run this command to generate a random 32 byte value and copy it to the `AUTH0_SECRET` field:
@@ -157,7 +157,7 @@ OPENAI_API_KEY="YOUR_API_KEY"
157
157
LANGGRAPH_API_URL=http://localhost:54367
158
158
```
159
159
160
-
To get your Auth0 application's `AUTH0_DOMAIN`, `AUTH0_CLIENT_ID`, and `AUTH0_CLIENT_SECRET`, navigate to the **Settings** tab in the Auth0 Dashboard. You'll find these values in the **Basic Information** section at the top.
160
+
To get your Auth0 application's `AUTH0_DOMAIN`, `AUTH0_CLIENT_ID`, and `AUTH0_CLIENT_SECRET`, navigate to <strong>Applications > Applications </strong> in the Auth0 Dashboard and select your client application. You'll find these values in the **Basic Information** section at the top.
161
161
Copy each value to the matching setting.
162
162
163
163
Next, run this command to generate a random 32 byte value and copy it to the `AUTH0_SECRET` field.
Copy file name to clipboardExpand all lines: auth4genai/snippets/get-started/langchain-next-js/call-others-api.mdx
+14-2Lines changed: 14 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -45,7 +45,12 @@ OPENAI_API_KEY="YOUR_API_KEY"
45
45
LANGGRAPH_API_URL=http://localhost:54367
46
46
LANGCHAIN_CALLBACKS_BACKGROUND=false
47
47
```
48
-
To get your Auth0 application's `AUTH0_DOMAIN`, `AUTH0_CLIENT_ID`, and `AUTH0_CLIENT_SECRET`, navigate to the **Settings** tab in the Auth0 Dashboard. You'll find these values in the **Basic Information** section at the top.
48
+
To get your Auth0 application's `AUTH0_DOMAIN`, `AUTH0_CLIENT_ID`, and `AUTH0_CLIENT_SECRET`, navigate to <strong>Applications > Applications </strong> in the Auth0 Dashboard and select your Regular Web application. You'll find these values in the **Basic Information** section at the top.
49
+
Copy each value to the matching setting.
50
+
51
+
To get your API's `AUTH0_AUDIENCE`, navigate to <strong>APIs > APIs </strong> in the Auth0 Dashboard and select your API. You'll find the identifier in the **General Settings** section at the top.
52
+
53
+
To get your Custom API Client's `AUTH0_CUSTOM_API_CLIENT_ID`, and `AUTH0_CUSTOM_API_CLIENT_SECRET` navigate to <strong>Applications > Applications </strong> in the Auth0 Dashboard and select your Custom API Client application. You'll find these values in the **Basic Information** section at the top.
49
54
Copy each value to the matching setting.
50
55
51
56
Next, run this command to generate a random 32 byte value and copy it to the `AUTH0_SECRET` field:
To get your Auth0 application's `AUTH0_DOMAIN`, `AUTH0_CLIENT_ID`, and `AUTH0_CLIENT_SECRET`, navigate to <strong>Applications > Applications </strong> in the Auth0 Dashboard and select your Regular Web application. You'll find these values in the **Basic Information** section at the top.
130
+
Copy each value to the matching setting.
124
131
125
-
To get your Auth0 application's `AUTH0_DOMAIN`, `AUTH0_CLIENT_ID`, and `AUTH0_CLIENT_SECRET`, navigate to the **Settings** tab in the Auth0 Dashboard. You'll find these values in the **Basic Information** section at the top.
132
+
To get your API's `AUTH0_AUDIENCE`, navigate to <strong>APIs > APIs </strong> in the Auth0 Dashboard and select your API. You'll find the identifier in the **General Settings** section at the top.
133
+
134
+
To get your Custom API Client's `AUTH0_CUSTOM_API_CLIENT_ID`, and `AUTH0_CUSTOM_API_CLIENT_SECRET` navigate to <strong>Applications > Applications </strong> in the Auth0 Dashboard and select your Custom API Client application. You'll find these values in the **Basic Information** section at the top.
126
135
Copy each value to the matching setting.
127
136
128
137
Next, run this command to generate a random 32 byte value and copy it to the `AUTH0_SECRET` field:
@@ -131,6 +140,9 @@ openssl rand -hex 32
131
140
```
132
141
133
142
Lastly, set your OpenAI API key or use any provider supported by the Vercel AI SDK:
143
+
```bash .env.local wrap lines
144
+
OPENAI_API_KEY="YOUR_API_KEY"
145
+
```
134
146
135
147
### Set up Token Vault for Google social connection
From the Settings page of the API that you just created, click the <strong>Add Application</strong> button in the right top corner. This will open a modal to create a new Custom API Client.
100
97
</li>
101
98
<li>
102
-
Click the{" "}
103
-
<strong>Create API</strong> button to create a new Custom API.
104
-
</li>
105
-
<li>
106
-
Go to the Custom API you created and click the <strong>Add Application</strong> button in the right top corner.
107
-
</li>
108
-
<li>
109
-
After that click the <strong>Configure Application</strong> button in the right top corner.
99
+
Give your Custom API Client a name in the Application Name field and click the <strong>Add</strong> button to create a new Custom API Client.
110
100
</li>
111
101
<li>
112
-
Note down the <code>client id</code> and <code>client secret</code>{" "}
113
-
for your environment variables.
102
+
After creation is successful, you should be redirected to the settings page for your newly created Custom API Client application. Note down the <code>client id</code> and <code>client secret</code>{" "}for your environment variables.
To get your Auth0 application's `AUTH0_DOMAIN`, `AUTH0_CLIENT_ID`, and `AUTH0_CLIENT_SECRET`, navigate to the **Settings** tab in the Auth0 Dashboard. You'll find these values in the **Basic Information** section at the top.
38
+
To get your Auth0 application's `AUTH0_DOMAIN`, `AUTH0_CLIENT_ID`, and `AUTH0_CLIENT_SECRET`, navigate to <strong>Applications > Applications </strong> in the Auth0 Dashboard and select your client application. You'll find these values in the **Basic Information** section at the top.
39
39
Copy each value to the matching setting.
40
40
41
41
Next, run this command to generate a random 32 byte value and copy it to the `AUTH0_SECRET` field:
# OpenAI API Key or any provider supported by the Vercel AI SDK
99
99
OPENAI_API_KEY="YOUR_API_KEY"
100
100
```
101
-
To get your Auth0 application's `AUTH0_DOMAIN`, `AUTH0_CLIENT_ID`, and `AUTH0_CLIENT_SECRET`, navigate to the **Settings** tab in the Auth0 Dashboard. You'll find these values in the **Basic Information** section at the top.
101
+
To get your Auth0 application's `AUTH0_DOMAIN`, `AUTH0_CLIENT_ID`, and `AUTH0_CLIENT_SECRET`, navigate to <strong>Applications > Applications </strong> in the Auth0 Dashboard and select your client application. You'll find these values in the **Basic Information** section at the top.
102
102
Copy each value to the matching setting.
103
103
104
104
Next, run this command to generate a random 32 byte value and copy it to the `AUTH0_SECRET` field:
To get your Auth0 application's `AUTH0_DOMAIN`, `AUTH0_CLIENT_ID`, and `AUTH0_CLIENT_SECRET`, navigate to the **Settings** tab in the Auth0 Dashboard. You'll find these values in the **Basic Information** section at the top.
37
+
To get your Auth0 application's `AUTH0_DOMAIN`, `AUTH0_CLIENT_ID`, and `AUTH0_CLIENT_SECRET`, navigate to <strong>Applications > Applications </strong> in the Auth0 Dashboard and select your client application. You'll find these values in the **Basic Information** section at the top.
38
38
Copy each value to the matching setting.
39
39
40
40
Next, run this command to generate a random 32 byte value and copy it to the `AUTH0_SECRET` field:
@@ -219,4 +219,4 @@ Sign up to your application to create a new user account. You will then see a we
219
219
Want to see how it all comes together? Explore or clone the fully implemented sample application on [GitHub](https://github.com/auth0-samples/auth0-ai-samples/tree/main/authenticate-users/vercel-ai-next-js).
0 commit comments