AgentLogin Frontend
OwnID CAIM is currently in a closed beta phase. To enable it in your account, please reach out to support@ownid.com for assistance.
The AgentLogin module provides functions for detecting AI agents (e.g. browser-based assistants) on the client side and automating their login process. As with other OwnID SDK methods, these functions are invoked by calling the global ownid function with the method name and parameters. This ensures the AI agent login flow integrates seamlessly into your existing OwnID setup.
Prerequisites
To use AgentLogin, ensure the OwnID SDK is initialized and AgentLogin is enabled in your configuration.
Agent Authentication
OwnID flows fully support AI agent authentication out of the box. You might want to encourage users to authenticate when they use an AI agent to ensure secure and auditable sessions by using ownid.ai.loginIfAgent()
Example Usage
Agent Differentiation
You can call ownid.ai.getAgentData()
to:
- Check whether an AI agent is currently browsing the site.
- If present, retrieve details such as an agent ID and the agent type.
Return Value
- If an AI agent is detected, the method returns an object:
If no AI agent is detected, the method returns null.
Example Usage
Was this page helpful?