# Sera Stores auth.md

Agent Authentication & Registration Specification for Sera Stores (https://serastores.com).

## Target Audience
Autonomous AI agents, search crawlers, and automated assistants seeking machine-readable access to Sera Stores catalog, inventory, and commerce features.

## Discovery Metadata
- OAuth Protected Resource Metadata: https://serastores.com/.well-known/oauth-protected-resource
- OAuth Authorization Server Metadata: https://serastores.com/.well-known/oauth-authorization-server
- OpenID Configuration: https://serastores.com/.well-known/openid-configuration
- API Catalog: https://serastores.com/.well-known/api-catalog
- OpenAPI Specification: https://serastores.com/openapi.json

## Supported Registration & Authentication Methods

### 1. Anonymous Access
Public catalog search, markdown representations, and sitemaps are available without credentials.
- Identity Type: anonymous
- Credential Types Supported: api_key, bearer_token
- Claim Endpoint: https://serastores.com/agent/claim

### 2. Identity Assertion (ID-JAG & Verified Email)
- Identity Types Supported: identity_assertion
- Assertion Types Supported: urn:ietf:params:oauth:token-type:id-jag, verified_email
- Credential Types Supported: bearer_token, api_key
- Registration URI: https://serastores.com/agent/register
- Claim URI: https://serastores.com/agent/claim
- Revocation URI: https://serastores.com/agent/revoke

### 3. OAuth 2.0 Client Credentials / Bearer Token
- Resource Server: https://serastores.com
- Token Endpoint: https://serastores.com/oauth/token
- Authorization Endpoint: https://serastores.com/oauth/authorize
- Bearer Method: header (Authorization: Bearer <token>)
- Scopes Supported: read, products, categories, orders

## Rate Limits & Usage Policy
- Follow directives specified in https://serastores.com/robots.txt
- Comply with Content-Signal: ai-train=no, search=yes, ai-input=no
- Use Accept: text/markdown for fast formatting-stripped payloads.
