# auth.md

This file tells agents how to register with Fluid Workplace and how to discover the related OAuth Protected Resource Metadata.

Fluid Workplace is a public business website for IT services in Liège and Wallonia.

Resource server: https://www.fluidworkplace.be

Authorization server: https://www.fluidworkplace.be

## Step 1 — Discover

Fetch this file:

https://www.fluidworkplace.be/auth.md

Fetch the OAuth Protected Resource Metadata:

https://www.fluidworkplace.be/.well-known/oauth-protected-resource

Read these fields from the PRM:

- resource
- resource_name
- authorization_servers
- scopes_supported
- bearer_methods_supported

Then fetch the Authorization Server Metadata:

https://www.fluidworkplace.be/.well-known/oauth-authorization-server

Read these standard OAuth fields:

- issuer
- token_endpoint
- revocation_endpoint
- grant_types_supported

Read the agent_auth block in full:

- skill
- identity_endpoint
- claim_endpoint
- events_endpoint
- identity_types_supported
- identity_assertion.assertion_types_supported
- events_supported

The agent_auth.skill value is this Auth.md file:

https://www.fluidworkplace.be/auth.md

## Step 2 — Pick a method

Fluid Workplace currently advertises only the anonymous registration method for agent discovery compatibility.

Supported registration type:

anonymous

Unsupported registration types:

identity_assertion

service_auth

The service does not currently issue production access tokens for a protected public API. Agents may still use the public website, public Markdown resources and public discovery metadata.

## Step 3 — Register

Anonymous registration endpoint:

POST https://www.fluidworkplace.be/agent/identity/

Request:

```json
{
  "type": "anonymous",
  "scope": "public:read public:discover contact:prepare"
}
```

Response:

```json
{
  "registration_id": "unavailable",
  "registration_type": "anonymous",
  "status": "public_discovery_only",
  "identity_assertion": null,
  "claim_token": null,
  "scopes": ["public:read", "public:discover", "contact:prepare"],
  "message": "Fluid Workplace does not currently issue production credentials to agents."
}
```

Agents must not submit user credentials or attempt account creation.

## Step 4 — Claim ceremony

Claim endpoint:

POST https://www.fluidworkplace.be/agent/identity/claim

Request:

```json
{
  "claim_token": "not_available",
  "email": "user@example.com"
}
```

Response:

```json
{
  "status": "unavailable",
  "message": "No claim ceremony is currently available for this public website."
}
```

## Step 5 — Exchange the assertion

Token endpoint:

POST https://www.fluidworkplace.be/oauth2/token

Request:

```text
grant_type=urn:ietf:params:oauth:grant-type:jwt-bearer
&assertion=<identity_assertion>
&resource=https://www.fluidworkplace.be
```

Response:

```json
{
  "error": "unsupported_grant_type",
  "error_description": "Fluid Workplace does not issue OAuth access tokens for public agent access."
}
```

## Step 6 — Revoke

Revocation endpoint:

POST https://www.fluidworkplace.be/oauth2/revoke

Request:

```text
token=<access_token>
&token_type_hint=access_token
```

Response:

```json
{
  "status": "unavailable",
  "message": "No OAuth token revocation endpoint is active because no tokens are issued."
}
```

## Agent Auth metadata

The Authorization Server Metadata contains:

```json
{
  "agent_auth": {
    "skill": "https://www.fluidworkplace.be/auth.md",
    "identity_endpoint": "https://www.fluidworkplace.be/agent/identity/",
    "claim_endpoint": "https://www.fluidworkplace.be/agent/identity/claim",
    "events_endpoint": "https://www.fluidworkplace.be/agent/event/notify",
    "identity_types_supported": ["anonymous"],
    "identity_assertion": {
      "assertion_types_supported": []
    },
    "events_supported": []
  }
}
```

## Scopes

| Scope | Description |
| --- | --- |
| public:read | Read public marketing and documentation pages. |
| public:discover | Read public .well-known discovery metadata. |
| contact:prepare | Prepare a human-readable contact request for the user. |

## Contact and escalation

Contact page:

https://www.fluidworkplace.be/contact.html#devis

Email:

frederic.gilson@fluidworkplace.be

## Terms and privacy

Legal notice:

https://www.fluidworkplace.be/mentions-legales.html

Privacy policy:

https://www.fluidworkplace.be/confidentialite.html

Cookie policy:

https://www.fluidworkplace.be/politique-de-cookies-ue.html
