Skip to content

Commit cd624ad

Browse files
authored
feat: apply AsyncAuthorization, TokenVault sdk naming updates (#51)
BREAKING CHANGE: TokenVault + AsyncAuth related methods were renamed in this release.
1 parent 1a42df8 commit cd624ad

79 files changed

Lines changed: 382 additions & 355 deletions

File tree

Some content is hidden

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

.vscode/settings.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
22
"poetryMonorepo.appendExtraPaths": true,
33
"python.analysis.extraPaths": [
4-
"examples/async-user-confirmation/langchain-examples",
5-
"examples/async-user-confirmation/llama-index-examples",
6-
"examples/async-user-confirmation/sample-api",
4+
"examples/async-authorization/langchain-examples",
5+
"examples/async-authorization/llama-index-examples",
6+
"examples/async-authorization/sample-api",
77
"examples/authorization-for-tools/langchain-examples",
88
"examples/authorization-for-tools/llama-index-examples",
99
"examples/calling-apis/langchain-examples",

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Developers are using LLMs to build generative AI applications that deliver power
99
- **Authenticate users**: Easily implement login experiences tailored for AI agents and assistants.
1010
- **Call APIs on users' behalf**: Use secure standards to call APIs from tools, integrating your app with other products.
1111
- **Authorization for RAG**: Generate more relevant responses while ensuring that the agent incorporates only information the user has access to.
12-
- **Async user confirmation**: Enable agents to operate autonomously in the background while requiring human approval when necessary.
12+
- **Async Authorization**: Enable agents to operate autonomously in the background while requiring human approval when necessary.
1313

1414
## Packages
1515

@@ -24,7 +24,7 @@ Developers are using LLMs to build generative AI applications that deliver power
2424
- [Authorization for RAG](/examples/authorization-for-rag/README.md): Examples of implementing secure document retrieval with strict access control using Okta FGA.
2525
- [Authorization for Tools](/examples/authorization-for-tools/README.md): Examples of implementing secure tool calling with strict access control using Okta FGA.
2626
- [Calling APIs](/examples/calling-apis/README.md): Examples of using secure standards to call third-party APIs from tools with Auth0.
27-
- [Async User Confirmation](/examples/async-user-confirmation/README.md): Examples of handling asynchronous user confirmation workflows.
27+
- [Async Authorization](/examples/async-authorization/README.md): Examples of handling asynchronous user confirmation workflows.
2828

2929
## Recommendations for VSCode Users
3030

examples/async-user-confirmation/README.md renamed to examples/async-authorization/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
## Async User Confirmation
1+
## Async Authorization
22

3-
Async User Confirmation enables background agents to perform tasks that require user approval before completion. This ensures that important actions are executed only with the user's consent, enhancing security and user control. For more information, refer to the [documentation](https://demo.auth0.ai/docs/async-user-confirmation).
3+
Async Authorization enables background agents to perform tasks that require user approval before completion. This ensures that important actions are executed only with the user's consent, enhancing security and user control. For more information, refer to the [documentation](https://auth0.com/ai/docs/intro/asynchronous-authorization).
44

55
### How It Works
66

examples/async-user-confirmation/langchain-examples/.env.example renamed to examples/async-authorization/langchain-examples/.env.example

File renamed without changes.

examples/async-user-confirmation/langchain-examples/LICENSE renamed to examples/async-authorization/langchain-examples/LICENSE

File renamed without changes.

examples/async-user-confirmation/langchain-examples/README.md renamed to examples/async-authorization/langchain-examples/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Async User Confirmation with LangChain
1+
# Async Authorization Confirmation with LangChain
22

33
## Getting Started
44

@@ -106,14 +106,14 @@ sequenceDiagram
106106
Agent->>User: "I've started a conditional trade"
107107
loop Every 10 mins
108108
Conditional Trade Agent->>Stocks API: Check P/E ratio
109-
Stocks API-->>Conditional Trade Agent:
109+
Stocks API-->>Conditional Trade Agent:
110110
alt P/E < 15
111111
Conditional Trade Agent->>Auth0: Initiate CIBA request
112112
Auth0->>User's Phone: Send push notification
113113
Conditional Trade Agent->>+CIBA Agent: Monitor user response
114114
loop Every minute
115115
CIBA Agent->>Auth0: Check user approval status
116-
Auth0-->>CIBA Agent:
116+
Auth0-->>CIBA Agent:
117117
alt User approves
118118
User's Phone-->>Auth0: User approves
119119
Auth0-->>CIBA Agent: User approves
@@ -123,7 +123,7 @@ sequenceDiagram
123123
end
124124
end
125125
Conditional Trade Agent->>Stocks API: Execute trade for 10 NVDA
126-
Stocks API-->>Conditional Trade Agent:
126+
Stocks API-->>Conditional Trade Agent:
127127
Conditional Trade Agent->>User's Phone: Inform user
128128
```
129129

examples/async-user-confirmation/langchain-examples/langgraph.json renamed to examples/async-authorization/langchain-examples/langgraph.json

File renamed without changes.

examples/async-user-confirmation/langchain-examples/poetry.lock renamed to examples/async-authorization/langchain-examples/poetry.lock

File renamed without changes.

examples/async-user-confirmation/langchain-examples/pyproject.toml renamed to examples/async-authorization/langchain-examples/pyproject.toml

File renamed without changes.

examples/async-user-confirmation/langchain-examples/src/__init__.py renamed to examples/async-authorization/langchain-examples/src/__init__.py

File renamed without changes.

0 commit comments

Comments
 (0)