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
* Added API identifier language
* Added dashboard links
* Updated dashboard links in qs
* Added language about custom API
* Added dashboard links to main content
* Removed Auth0 APIs link
* Update call-others-api.jsx
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
@@ -57,7 +57,7 @@ OPENAI_API_KEY="YOUR_API_KEY"
57
57
LANGGRAPH_API_URL=http://localhost:54367
58
58
```
59
59
60
-
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
+
To get your Auth0 application's `AUTH0_DOMAIN`, `AUTH0_CLIENT_ID`, and `AUTH0_CLIENT_SECRET`, navigate to <strong>[Applications > Applications](https://manage.auth0.com/#/applications)</strong> in the Auth0 Dashboard and select your client application. You'll find these values in the **Basic Information** section at the top.
61
61
Copy each value to the matching setting.
62
62
63
63
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 <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.
160
+
To get your Auth0 application's `AUTH0_DOMAIN`, `AUTH0_CLIENT_ID`, and `AUTH0_CLIENT_SECRET`, navigate to <strong>[Applications > Applications](https://manage.auth0.com/#/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
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -46,12 +46,12 @@ OPENAI_API_KEY="YOUR_API_KEY"
46
46
LANGGRAPH_API_URL=http://localhost:54367
47
47
LANGCHAIN_CALLBACKS_BACKGROUND=false
48
48
```
49
-
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
+
To get your Auth0 application's `AUTH0_DOMAIN`, `AUTH0_CLIENT_ID`, and `AUTH0_CLIENT_SECRET`, navigate to <strong>[Applications > Applications](https://manage.auth0.com/#/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.
50
50
Copy each value to the matching setting.
51
51
52
-
To get your API's `AUTH0_AUDIENCE`, navigate to <strong>Applications > APIs</strong> in the Auth0 Dashboard and select your API. You'll find the identifier in the **General Settings** section at the top.
52
+
To get your API's `AUTH0_AUDIENCE`, navigate to <strong>[Applications > APIs](https://manage.auth0.com/#/apis)</strong> in the Auth0 Dashboard and select your API. You'll find the identifier in the **General Settings** section at the top.
53
53
54
-
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.
54
+
To get your Custom API Client's `AUTH0_CUSTOM_API_CLIENT_ID`, and `AUTH0_CUSTOM_API_CLIENT_SECRET` navigate to <strong>[Applications > Applications](https://manage.auth0.com/#/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.
55
55
Copy each value to the matching setting.
56
56
57
57
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
+
To get your Auth0 application's `AUTH0_DOMAIN`, `AUTH0_CLIENT_ID`, and `AUTH0_CLIENT_SECRET`, navigate to <strong>[Applications > Applications](https://manage.auth0.com/#/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.
131
131
Copy each value to the matching setting.
132
132
133
-
To get your API's `AUTH0_AUDIENCE`, navigate to <strong>Applications > APIs</strong> in the Auth0 Dashboard and select your API. You'll find the identifier in the **General Settings** section at the top.
133
+
To get your API's `AUTH0_AUDIENCE`, navigate to <strong>[Applications > APIs](https://manage.auth0.com/#/apis)</strong> in the Auth0 Dashboard and select your API. You'll find the identifier in the **General Settings** section at the top.
134
134
135
-
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.
135
+
To get your Custom API Client's `AUTH0_CUSTOM_API_CLIENT_ID`, and `AUTH0_CUSTOM_API_CLIENT_SECRET` navigate to <strong>[Applications > Applications](https://manage.auth0.com/#/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.
136
136
Copy each value to the matching setting.
137
137
138
138
Next, run this command to generate a random 32 byte value and copy it to the `AUTH0_SECRET` field:
<li>Create a new API with an identifier (audience).</li>
61
+
<li>Create a new API with an identifier (audience), for example, <code>https://my-custom-api.com</code>.</li>
61
62
<li>
62
63
Once API is created, go to the APIs{" "}
63
64
<strong>Settings > Access Settings</strong> and enable{" "}
64
65
<strong>Allow Offline Access</strong>.
65
66
</li>
66
-
<li>Note down the API identifier for your environment variables.</li>
67
+
<li>Note down the API identifier for your environment variables. You will use the API identifier as the audience parameter in token requests (<code>AUTH0_AUDIENCE</code>).</li>
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.
90
+
From the <strong>Settings</strong> 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.
98
91
</li>
99
92
<li>
100
93
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.
The Connected Accounts flow uses the <ahref="https://auth0.com/docs/manage-users/my-account-api"target="_blank">My Account API</a> to create and manage connected accounts for a user across supported external providers.<br/><br/>
114
107
In the Auth0 Dashboard, configure the My Account API:
115
108
<ul>
116
-
<li>Navigate to <strong>Authentication > APIs</strong>, locate the My Account API banner, and select <strong>Activate</strong> to activate the Auth0 My Account API.</li>
109
+
<li>Navigate to <ahref="https://manage.auth0.com/#/apis"target="_blank"><strong>Applications > APIs</strong></a>, locate the My Account API banner, and select <strong>Activate</strong> to activate the Auth0 My Account API.</li>
117
110
<li>Once activated, select <strong>Auth0 My Account API</strong> and then select the <strong>Applications</strong> tab.
118
111
<ul>
119
112
<li>Toggle your client application to authorize it to access the My Account API.</li>
After your web application has been granted access to the My Account API, you will also need to leverage the <ahref="https://auth0.com/docs/secure/tokens/refresh-tokens/multi-resource-refresh-token"target="_blank">Multi-Resource Refresh Token</a> feature, which enables the refresh token delivered to your application to also obtain an access token to call the My Account API. <br/><br/>
131
124
You can quickly define a <ahref="https://auth0.com/docs/secure/tokens/refresh-tokens/multi-resource-refresh-token/configure-and-implement-multi-resource-refresh-token"target="_blank">refresh token policy</a> for your application to use when requesting access tokens for the My Account API by doing the following:
132
125
<ul>
133
-
<li>Navigate to <strong>Applications > Applications</strong> and select your client application.</li>
126
+
<li>Navigate to <ahref="https://manage.auth0.com/#/applications"target="_blank"><strong>Applications > Applications</strong></a> and select your client application.</li>
134
127
<li>On the <strong>Settings</strong> tab, scroll down to the <strong>Multi-Resource Refresh Token</strong> section.</li>
135
128
<li>Select <strong>Edit Configuration</strong> and then enable the MRRT toggle for the <strong>Auth0 My Account API</strong>.</li>
136
129
</ul>
137
130
</Step>)
138
131
139
132
steps.push(
140
133
<Stepkey="google-connection"title="Configure Google Social Integration">
141
-
Set up a Google developer account that allows for third-party API calls by
134
+
Set up a Google developer account that allows for external API calls by
142
135
following the <ahref="/integrations/google">Google Social Integration</a>{" "}
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
+
To get your Auth0 application's `AUTH0_DOMAIN`, `AUTH0_CLIENT_ID`, and `AUTH0_CLIENT_SECRET`, navigate to <strong>[Applications > Applications](https://manage.auth0.com/#/applications) </strong> in the Auth0 Dashboard and select your client application. You'll find these values in the **Basic Information** section at the top.
40
40
Copy each value to the matching setting.
41
41
42
42
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
100
100
OPENAI_API_KEY="YOUR_API_KEY"
101
101
```
102
-
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
+
To get your Auth0 application's `AUTH0_DOMAIN`, `AUTH0_CLIENT_ID`, and `AUTH0_CLIENT_SECRET`, navigate to <strong>[Applications > Applications](https://manage.auth0.com/#/applications)</strong> in the Auth0 Dashboard and select your client application. You'll find these values in the **Basic Information** section at the top.
103
103
Copy each value to the matching setting.
104
104
105
105
Next, run this command to generate a random 32 byte value and copy it to the `AUTH0_SECRET` field:
To get your SPA application's `VITE_AUTH0_DOMAIN`, and `VITE_AUTH0_CLIENT_ID`, navigate to <strong>Applications > Applications</strong> in the Auth0 Dashboard and select your SPA application. You'll find these values in the **Basic Information** section at the top.
56
+
To get your SPA application's `VITE_AUTH0_DOMAIN`, and `VITE_AUTH0_CLIENT_ID`, navigate to <strong>[Applications > Applications](https://manage.auth0.com/#/applications)</strong> in the Auth0 Dashboard and select your SPA application. You'll find these values in the **Basic Information** section at the top.
57
57
Copy each value to the matching setting.
58
58
59
-
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.
59
+
To get your API's `AUTH0_AUDIENCE`, navigate to <strong>[Applications > APIs](https://manage.auth0.com/#/apis)</strong> in the Auth0 Dashboard and select your API. You'll find the identifier in the **General Settings** section at the top.
To get your Custom API Client's `AUTH0_DOMAIN`, `AUTH0_AUDIENCE`, and `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.
71
+
To get your Custom API Client's `AUTH0_DOMAIN`, `AUTH0_AUDIENCE`, and `AUTH0_CUSTOM_API_CLIENT_ID`, and `AUTH0_CUSTOM_API_CLIENT_SECRET` navigate to <strong>[Applications > Applications](https://manage.auth0.com/#/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.
72
72
Copy each value to the matching setting.
73
73
74
74
The `AUTH0_AUDIENCE` should match the identifier of the API referenced in the `client/.env` file above.
To get your SPA application's `VITE_AUTH0_DOMAIN`, and `VITE_AUTH0_CLIENT_ID`, navigate to <strong>Applications > Applications</strong> in the Auth0 Dashboard and select your SPA application. You'll find these values in the **Basic Information** section at the top.
140
+
To get your SPA application's `VITE_AUTH0_DOMAIN`, and `VITE_AUTH0_CLIENT_ID`, navigate to <strong>[Applications > Applications](https://manage.auth0.com/#/applications)</strong> in the Auth0 Dashboard and select your SPA application. You'll find these values in the **Basic Information** section at the top.
141
141
Copy each value to the matching setting.
142
142
143
-
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.
143
+
To get your API's `AUTH0_AUDIENCE`, navigate to <strong>[Applications > APIs](https://manage.auth0.com/#/apis)</strong> in the Auth0 Dashboard and select your API. You'll find the identifier in the **General Settings** section at the top.
To get your Custom API Client's `AUTH0_DOMAIN`, `AUTH0_AUDIENCE`, and `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.
155
+
To get your Custom API Client's `AUTH0_DOMAIN`, `AUTH0_AUDIENCE`, and `AUTH0_CUSTOM_API_CLIENT_ID`, and `AUTH0_CUSTOM_API_CLIENT_SECRET` navigate to <strong>[Applications > Applications](https://manage.auth0.com/#/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.
156
156
Copy each value to the matching setting.
157
157
158
158
The `AUTH0_AUDIENCE` should match the identifier of the API referenced in the `client/.env` file above.
0 commit comments