# auth.md

Immogestio supports agent registration for protected API access.

## Discovery endpoints

- OAuth Protected Resource Metadata: `https://immogestio.es/.well-known/oauth-protected-resource`
- OAuth Authorization Server Metadata: `https://immogestio.es/.well-known/oauth-authorization-server`
- OIDC Discovery Metadata: `https://immogestio.es/.well-known/openid-configuration`

## Agent registration

- Registration instructions: `https://immogestio.es/agent-auth/register`
- Claim instructions: `https://immogestio.es/agent-auth/claim`

Agents should discover supported identity and credential types from the `agent_auth` block in OAuth Authorization Server metadata.

## Token usage

- Resource audience: `https://immogestio.es/api`
- Supported bearer method: `Authorization: Bearer <token>`
- Primary scopes: `api.read`, `openid`, `profile`, `email`

## Revocation

- Credential revocation endpoint: `https://immogestio.es/oauth/revoke`
