Skip to content

Commit 71bc73e

Browse files
Merge pull request #6045 from ranuka-laksika/add-user-serving-agent-docs
2 parents 5c3b973 + 38bbf69 commit 71bc73e

6 files changed

Lines changed: 116 additions & 15 deletions

File tree

.coderabbit.yml

Lines changed: 24 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,27 @@ reviews:
1212
poem: false
1313
auto_apply_labels: true
1414
labeling_instructions:
15-
- label: "Team/Authentication & registration"
16-
instructions: "Use for documentation related to custom authenticators, login flows, registration flows, application authentication settings, login UI, identity providers in login, MFA configuration and authentication steps."
17-
- label: "Team/User & identity administration"
18-
instructions: "Use for documentation related to user management, identity management, profile management, account settings, password management, user roles and permissions."
19-
- label: "Team/API Access Mgt & Authorization"
20-
instructions: "Use for documentation related to API authorization, OAuth/OIDC authorization issues, role management, permission management, consent management, scope management, access policies."
21-
- label: "Team/B2B"
22-
instructions: "Use for documentation related to sub-organization management, partner authentication, partner identity management, organization hierarchy."
23-
- label: "Team/Identity Server Core"
24-
instructions: "Use for documentation related to email provider configuration, SMS provider configuration, deployment configuration, server performance improvements, infrastructure issues, core backend services, tenant management, web application or API performance and maintenance."
15+
- label: "Team/Authentication & registration"
16+
instructions: >
17+
Apply this label ONLY if there is no existing label starting with "Team/" already present on the PR.
18+
Use for documentation related to custom authenticators, login flows, registration flows, application authentication settings, login UI, identity providers in login, MFA configuration and authentication steps.
19+
20+
- label: "Team/User & identity administration"
21+
instructions: >
22+
Apply this label ONLY if there is no existing label starting with "Team/" already present on the PR.
23+
Use for documentation related to user management, identity management, profile management, account settings, password management, user roles and permissions.
24+
25+
- label: "Team/API Access Mgt & Authorization"
26+
instructions: >
27+
Apply this label ONLY if there is no existing label starting with "Team/" already present on the PR.
28+
Use for documentation related to API authorization, OAuth/OIDC authorization issues, role management, permission management, consent management, scope management, access policies.
29+
30+
- label: "Team/B2B"
31+
instructions: >
32+
Apply this label ONLY if there is no existing label starting with "Team/" already present on the PR.
33+
Use for documentation related to sub-organization management, partner authentication, partner identity management, organization hierarchy.
34+
35+
- label: "Team/Identity Server Core"
36+
instructions: >
37+
Apply this label ONLY if there is no existing label starting with "Team/" already present on the PR.
38+
Use for documentation related to email provider configuration, SMS provider configuration, deployment configuration, server performance improvements, infrastructure issues, core backend services, tenant management, web application or API performance and maintenance.
249 KB
Loading
197 KB
Loading
249 KB
Loading
197 KB
Loading

en/includes/guides/agentic-ai/ai-agents/register-and-manage-agents.md

Lines changed: 92 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,35 @@
11
In today’s rapidly evolving AI-driven environments, effective management of AI agents is essential to ensure security, compliance, and operational efficiency. AI agents act autonomously to perform various tasks, and thus require well-defined lifecycle management from creation to retirement. {{ product_name }} provides a comprehensive framework to help you create, configure, monitor, and securely manage the entire lifecycle of your AI agents.
22

33
This guide walks you through key processes involved in managing AI agents, including identity creation, credential issuance, role assignment, deployment, monitoring, and eventual deactivation or deletion. Following these best practices ensures your AI agents operate reliably within your organizational security policies and governance standards.
4+
{% if is_version == "next" or product == "asgardeo" %}
5+
6+
## Understanding agent types
7+
8+
{{ product_name }} supports two categories of AI agents based on whether they require user authentication.
9+
10+
### Agents with user login
11+
12+
These are AI agents that allow users to log in to the agent. When users log in, these agents can act on behalf of authenticated users and access user-specific resources. Users must provide explicit consent before the agent can perform actions on their behalf. {{ product_name }} automatically creates an OAuth/OIDC application for these agents to enable secure user authentication and authorization flows.
13+
14+
Agents with user login come in two variants:
15+
16+
- **Interactive agents**: These agents require constant user interaction throughout their operation. Examples include:
17+
18+
- Chatbots that respond to user queries in real-time
19+
- AI assistants that help users complete tasks
20+
- Conversational interfaces
21+
22+
Interactive agents use the OAuth `authorization_code` grant flow with PKCE (Proof Key for Code Exchange) to authenticate users and get access tokens.
23+
24+
- **Background agents**: These agents perform tasks on behalf of users but operate asynchronously without requiring constant user interaction. Examples include:
25+
26+
- Scheduled report generators
27+
- Notification services
28+
- Batch processing systems that work with user data
29+
30+
Background agents use CIBA (Client Initiated Backchannel Authentication) flow. This flow lets the agent start authentication through an out-of-band channel (such as email or SMS). The user provides consent asynchronously.
31+
32+
{% endif %}
433

534
## AI agent lifecycle Management
635

@@ -41,9 +70,41 @@ Registering an AI agent is the first step to bring an autonomous system into you
4170
3. Enter the following details:
4271
- **Name**: A descriptive name for your AI agent for human-readable display purposes
4372
- **Description** (optional): Purpose and functionality of the agent
73+
{% if is_version == "next" or product == "asgardeo" %}
74+
4. If you want to allow users to log in to this agent, enable the **Allow users to log in to this agent** checkbox. This will configure OAuth/OIDC authentication for the agent.
75+
5. If you enabled the user login option, select the agent type:
76+
- **Interactive Agent**: Select this if the agent requires constant user interaction (e.g., chatbots, AI assistants). You will need to provide:
77+
- **Callback URL**: The OAuth redirect URI where the agent will receive authorization codes
78+
- **Background Agent**: Select this if the agent operates autonomously without constant user interaction. You will need to configure:
79+
- **Authentication Request Expiry Time**: Duration in seconds for which the CIBA authentication request remains valid
80+
- **Notification Channels**: Select how users will be notified for authentication (Email, SMS, or both)
81+
6. Click **Create** to complete the registration.
82+
{% endif %}
83+
84+
{% if is_version != "next" and product != "asgardeo" %}
4485
4. Click **Create** to complete the registration.
86+
{% endif %}
87+
88+
After successful registration, the agent receives a unique Agent ID that acts as its permanent identifier within the system. A secret credential is also issued at this point and is displayed only once. Be sure to store it securely for deployment.
89+
90+
{% if is_version == "next" or product == "asgardeo" %}
91+
For agents with user login enabled, an OAuth application is automatically created with the appropriate grant types configured:
92+
93+
- **Interactive agents**: Configured with `authorization_code` and `refresh_token` grant types
94+
- **Background agents**: Configured with `urn:openid:params:grant-type:ciba` (Client Initiated Backchannel Authentication) grant type
4595

46-
After successful registration, the agent receives a unique Agent ID that acts as its permanent identifier within the system. A secret credential is also issued at this point and is displayed only once. Be sure to store it securely for deployment. If needed, you can generate new credentials later. For detailed information on managing credentials, refer to the [Agent Credentials]({{base_path}}/guides/agentic-ai/ai-agents/agent-credentials/) section.
96+
The success screen will display the Agent ID, Agent Secret (masked), and for agents with user login, the OAuth Client ID which can be used for OAuth/OIDC flows.
97+
98+
=== "Agent with user login"
99+
100+
![Agent registration success with user login]({{base_path}}/assets/img/guides/agentic-ai/agent-registration-success-with-user-login.png){: width="600" style="display: block; margin: 0 auto;"}
101+
102+
=== "Agent without user login"
103+
104+
![Agent registration success without user login]({{base_path}}/assets/img/guides/agentic-ai/agent-registration-success-without-user-login.png){: width="600" style="display: block; margin: 0 auto;"}
105+
106+
{% endif %}
107+
If needed, you can generate new credentials later. For detailed information on managing credentials, refer to the [Agent Credentials]({{base_path}}/guides/agentic-ai/ai-agents/agent-credentials/) section.
47108

48109
### Updating agent information
49110

@@ -69,19 +130,46 @@ Deactivation is a vital security control used to temporarily suspend an AI agent
69130
!!! warning
70131
Deactivating an AI agent will immediately revoke all its active access tokens, rendering any existing sessions invalid. Furthermore, it prevents the agent from initiating any new authentication attempts, effectively halting its operations until it's reactivated.
71132

133+
{% if is_version == "next" or product == "asgardeo" %}
134+
135+
### Managing OAuth applications for agents with user login
136+
137+
When you create an agent with user login enabled, {{ product_name }} automatically creates an OAuth/OIDC application to handle user authentication flows. This application is configured with appropriate grant types based on the agent type you selected.
138+
139+
To view and manage the OAuth application:
140+
141+
1. On the {{ product_name }} Console, go to **Applications**.
142+
2. Find the application that corresponds to your agent (typically named with your agent's ID).
143+
3. You can configure additional settings such as:
144+
- Access token expiry times
145+
- Refresh token expiry times
146+
- Allowed scopes
147+
- Additional callback URLs (for interactive agents)
148+
- CIBA notification settings (for background agents)
149+
150+
!!! note
151+
Changes to the OAuth application settings will affect how the agent authenticates users. Ensure you understand the implications before modifying these settings.
152+
153+
{% endif %}
154+
72155
### Deleting an agent
73156

74-
Deleting an AI agent permanently removes the agent and all associated data, including credentials and configurations. This action is irreversible and should only be performed when you are certain that the agent is no longer needed.
157+
Deleting an AI agent permanently removes the agent and all associated data, including credentials and configurations.{% if is_version == "next" or product == "asgardeo" %} For agents with user login enabled, the automatically created OAuth application will also be removed.{% endif %} This action is irreversible and should only be performed when you are certain that the agent is no longer needed.
75158

76159
1. On the {{ product_name }} Console, go to **Agents**.
77160
2. Select your AI agent from the list.
78161
3. Scroll down to the **Danger Zone** section.
79162
4. Click **Delete agent**.
80163
5. Confirm the deletion when prompted.
81164

165+
{% if is_version == "next" or product == "asgardeo" %}
166+
!!! warning
167+
For agents with user login enabled, deleting the agent will also delete the associated OAuth application. Any users or services relying on this application for authentication will lose access immediately.
168+
{% endif %}
169+
82170
## Best practices
83171

84-
It's always recomended to follow these best practices to maintain security, reliability, and compliance when managing AI agents in your organization.
172+
It's always recommended to follow these best practices to maintain security, reliability, and compliance when managing AI agents in your organization.
85173

86174
- *Apply the Principle of Least Privilege.*
87175
Assign only the minimum permissions necessary for the agent to perform its tasks, limiting potential exposure.
@@ -98,5 +186,4 @@ It's always recomended to follow these best practices to maintain security, reli
98186
- *Review Agent Access Periodically.*
99187
Conduct regular audits of agent roles and permissions to ensure they remain appropriate as organizational needs evolve.
100188

101-
102-
Once you establish the agent identity, agent credentials are key to the agent's authentication and authorization. For more details on managing agent credentials, see the [Agent Credentials]({{base_path}}/guides/agentic-ai/ai-agents/agent-credentials/) guide.
189+
Once you establish the agent identity, agent credentials are key to the agent's authentication and authorization. For more details on managing agent credentials, see the [Agent Credentials]({{base_path}}/guides/agentic-ai/ai-agents/agent-credentials/) guide.

0 commit comments

Comments
 (0)