Skip to content

Commit ad5aa70

Browse files
authored
feat: add authorization_params to TokenVaultInterrupt (#55)
chore: document authorization_params fix Google in LangChain prevent automatic format of html switch to llamaindex example to openai fix llamaindex example update langchain example revisit langchain examples update connect apis examples to use latest version of auth0-fastapi improve examples by redirecting to correct url fix: tweaked some tenant setup instructions fix: add missing `openid` for all usage of `google-oauth2` fix: add missing `openid` for all usage of `google-oauth2` feat: bump @auth0/ai-components to v4.x.x fix: review feedback
1 parent a1d7e5f commit ad5aa70

41 files changed

Lines changed: 1987 additions & 639 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.vscode/launch.json

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
{
2+
"version": "0.2.0",
3+
"configurations": [
4+
{
5+
"name": "Python: Start LangChain Examples",
6+
"type": "debugpy",
7+
"request": "launch",
8+
"program": "${workspaceFolder}/examples/calling-apis/langchain-examples/scripts/start_debug.py",
9+
"cwd": "${workspaceFolder}/examples/calling-apis/langchain-examples",
10+
"justMyCode": false,
11+
"console": "integratedTerminal",
12+
"env": {
13+
"PYTHONPATH": "${workspaceFolder}/examples/calling-apis/langchain-examples/src"
14+
},
15+
"python": "${workspaceFolder}/examples/calling-apis/langchain-examples/.venv/bin/python"
16+
},
17+
{
18+
"name": "Python: LangGraph Up",
19+
"type": "debugpy",
20+
"request": "launch",
21+
"program": "${workspaceFolder}/examples/calling-apis/langchain-examples/scripts/langgraph_up.py",
22+
"cwd": "${workspaceFolder}/examples/calling-apis/langchain-examples",
23+
"justMyCode": false,
24+
"console": "integratedTerminal",
25+
"env": {
26+
"PYTHONPATH": "${workspaceFolder}/examples/calling-apis/langchain-examples/src"
27+
},
28+
"python": "${workspaceFolder}/examples/calling-apis/langchain-examples/.venv/bin/python"
29+
},
30+
{
31+
"name": "Python: Start LlamaIndex Examples",
32+
"type": "debugpy",
33+
"request": "launch",
34+
"program": "${workspaceFolder}/examples/calling-apis/llama-index-examples/scripts/start_debug.py",
35+
"cwd": "${workspaceFolder}/examples/calling-apis/llama-index-examples",
36+
"justMyCode": false,
37+
"console": "integratedTerminal",
38+
"env": {
39+
"PYTHONPATH": "${workspaceFolder}/examples/calling-apis/llama-index-examples/src"
40+
},
41+
"python": "${workspaceFolder}/examples/calling-apis/llama-index-examples/.venv/bin/python"
42+
}
43+
]
44+
}

.vscode/settings.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,15 @@
11
{
22
"poetryMonorepo.appendExtraPaths": true,
33
"python.analysis.extraPaths": [
4+
"examples/calling-apis/langchain-examples/scripts",
5+
"examples/calling-apis/llama-index-examples/src",
6+
"examples/calling-apis/langchain-examples/src",
7+
"packages/auth0-ai/auth0_ai",
8+
"examples/calling-apis/llama-index-examples/.venv",
9+
"packages/auth0-ai-llamaindex/auth0_ai_llamaindex",
10+
"examples/calling-apis/llama-index-examples/scripts",
11+
"packages/auth0-ai-langchain/auth0_ai_langchain",
12+
"examples/calling-apis/langchain-examples/.venv",
413
"examples/async-authorization/langchain-examples",
514
"examples/async-authorization/llama-index-examples",
615
"examples/async-authorization/sample-api",
@@ -27,5 +36,8 @@
2736
"source.fixAll": "always"
2837
},
2938
"editor.defaultFormatter": "ms-python.autopep8"
39+
},
40+
"[html]": {
41+
"editor.formatOnSave": false
3042
}
3143
}

examples/calling-apis/langchain-examples/README.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,20 +13,25 @@
1313
- **Allowed Callback URLs**: `http://localhost:3000/auth/callback`
1414
- **Allowed Logout URLs**: `http://localhost:3000`
1515
- **Advanced Settings -> Grant Types**: `Refresh Token` and `Token Vault` (or `urn:auth0:params:oauth:grant-type:token-exchange:federated-connection-access-token`)
16+
- **Allow Refresh Token Rotation**: currently you should disable this setting if you are using Token Vault for token exchanges with a refresh token.
1617
- Either **Google**, **Slack** or **Github** social connections enabled for the application:
1718
- **Google connection** set up instructions:
1819
- Create a [Google OAuth 2.0 Client](https://console.cloud.google.com/apis/credentials) configured with access to the `https://www.googleapis.com/auth/calendar.freebusy` scope (Google Calendar API).
1920
- On Auth0 Dashboard, set up the client ID and secret from the previously created Google client.
2021
- Enable following settings:
22+
- **Use for Connected Accounts with Token Vault** enabled.
2123
- **Offline access** enabled.
2224
- **https://www.googleapis.com/auth/calendar.freebusy** scope granted.
23-
- **Token Vault** enabled.
2425
- **Slack connection** set up instructions:
2526
- Create a [Slack App](https://api.slack.com/apps) and follow the [Auth0's Signin with Slack](https://marketplace.auth0.com/integrations/sign-in-with-slack) `installation` instructions to set up the connection.
26-
- On Slack's OAuth & Permission settings, make sure to add the `channels:read` scope to the User Token scopes.
27+
- Enable following settings:
28+
- **Use for Connected Accounts with Token Vault** enabled.
29+
- On Slack's OAuth & Permission settings, make sure to add the `channels:read` scope to the User Token scopes.
2730
- **Github connection** set up instructions:
2831
- Register a new app in [GitHub Developer Settings: OAuth Apps](https://github.com/settings/developers#oauth-apps) and follow the [Auth0's Github social connection](https://marketplace.auth0.com/integrations/github-social-connection) `installation` instructions to set up the connection.
2932
- On Auth0 Dashboard, set up the client ID and secret from the previously created Github App.
33+
- Enable following settings:
34+
- **Use for Connected Accounts with Token Vault** enabled.
3035

3136
### Setup
3237

0 commit comments

Comments
 (0)