# Agent Authentication

This site supports agent registration via OAuth 2.0 / OpenID Connect.

## Discovery Endpoints

| Endpoint | URL |
|----------|-----|
| Authorization Server Metadata | `/.well-known/oauth-authorization-server` |
| OpenID Connect Discovery | `/.well-known/openid-configuration` |
| Protected Resource Metadata | `/.well-known/oauth-protected-resource` |
| JWKS | `/.well-known/jwks.json` |

## Registration

Agents can register at:

```
POST https://aberrios.com/auth/register
```

### Supported identity types
- `software_statement`
- `client_id`

### Supported credential types
- `client_secret`
- `private_key_jwt`

### Supported grant types
- `authorization_code`
- `refresh_token`
- `client_credentials`

## Token endpoint

```
POST https://aberrios.com/auth/token
```

## Revocation

```
POST https://aberrios.com/auth/revoke
```

## Claims

```
GET https://aberrios.com/auth/claims
```

## Scopes

- `read` — read access to public resources
- `write` — write access for registered agents
- `admin` — administrative access
