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
Copy file name to clipboardExpand all lines: .coderabbit.yml
+24-10Lines changed: 24 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -12,13 +12,27 @@ reviews:
12
12
poem: false
13
13
auto_apply_labels: true
14
14
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.
Copy file name to clipboardExpand all lines: en/includes/guides/agentic-ai/ai-agents/register-and-manage-agents.md
+92-5Lines changed: 92 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,35 @@
1
1
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.
2
2
3
3
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 %}
4
33
5
34
## AI agent lifecycle Management
6
35
@@ -41,9 +70,41 @@ Registering an AI agent is the first step to bring an autonomous system into you
41
70
3. Enter the following details:
42
71
-**Name**: A descriptive name for your AI agent for human-readable display purposes
43
72
-**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" %}
44
85
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
45
95
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
+
{: width="600" style="display: block; margin: 0 auto;"}
101
+
102
+
=== "Agent without user login"
103
+
104
+
{: 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.
47
108
48
109
### Updating agent information
49
110
@@ -69,19 +130,46 @@ Deactivation is a vital security control used to temporarily suspend an AI agent
69
130
!!! warning
70
131
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.
71
132
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).
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
+
72
155
### Deleting an agent
73
156
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.
75
158
76
159
1. On the {{ product_name }} Console, go to **Agents**.
77
160
2. Select your AI agent from the list.
78
161
3. Scroll down to the **Danger Zone** section.
79
162
4. Click **Delete agent**.
80
163
5. Confirm the deletion when prompted.
81
164
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
+
82
170
## Best practices
83
171
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.
85
173
86
174
-*Apply the Principle of Least Privilege.*
87
175
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
98
186
-*Review Agent Access Periodically.*
99
187
Conduct regular audits of agent roles and permissions to ensure they remain appropriate as organizational needs evolve.
100
188
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