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
@@ -47,7 +47,7 @@ Integrate the Auth0 AI SDK into your application to secure your async AI agent w
47
47
48
48
#### Configure the Auth0 AI SDK
49
49
50
-
To require asynchronous authorization for your tool, the tool needs to be wrapped with the Async authorizer, `with_async_user_confirmation()`. Let's create a helper function to wrap the tool with the Async authorizer.
50
+
To require asynchronous authorization for your tool, the tool needs to be wrapped with the Async authorizer, `with_async_authorization()`. Let's create a helper function to wrap the tool with the Async authorizer.
51
51
52
52
Create a file at `app/core/auth0_ai.py` and instantiate a new Auth0 AI SDK client:
@@ -450,4 +450,4 @@ That's it! You successfully integrated third-party API access using Token Vault
450
450
### View a complete example
451
451
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/call-apis-on-users-behalf/others-api/langchain-fastapi-py).
@@ -167,18 +167,18 @@ You can check different authentication options for Next.js with Auth0 at the [of
167
167
168
168
#### Client Side
169
169
170
-
On this example we utilize the `EnsureAPIAccessPopup` component to show a popup that allows the user to authenticate with GitHub and grant access with the requested scopes. You'll first need to install the `@auth0/ai-components` package:
170
+
On this example we utilize the `TokenVaultConsentPopup` component to show a popup that allows the user to authenticate with GitHub and grant access with the requested scopes. You'll first need to install the `@auth0/ai-components` package:
171
171
172
172
```bash wrap lines
173
-
npx @auth0/ai-components add FederatedConnections
173
+
npx @auth0/ai-components add TokenVault
174
174
```
175
175
176
176
Then, you can integrate the authentication popup in your chat component, using the interruptions helper from the SDK:
@@ -88,14 +88,14 @@ Interrupts are a way for the system to pause execution and prompt the user to ta
88
88
89
89
On the server side of your Flask application you will need to set up a route to handle the Chat API requests. This route will be responsible for forwarding the requests to the OpenAI API utilizing LlamaIndex's SDK, that has been initialized with Auth0 AI's protection enhancements for tools.
90
90
91
-
When `FederatedConnectionInterrupt` error ocurrs, the server side will signal the front-end about the level access restrictions, and the front-end should prompt the user to trigger a new authorization (or login) request with the necessary permissions.
91
+
When `TokenVaultInterrupt` error ocurrs, the server side will signal the front-end about the level access restrictions, and the front-end should prompt the user to trigger a new authorization (or login) request with the necessary permissions.
0 commit comments