# Read the authorization server metadata

> Page: https://docs.plotwork.dev/api/get--well-known-oauth-authorization-server. Index of every page: https://docs.plotwork.dev/llms.txt

Sign in with Plotwork's metadata (RFC 8414): the issuer, the endpoints, the scopes, PKCE S256 only, and how a client authenticates.

`GET /.well-known/oauth-authorization-server`

## TL;DR

| Question | Answer |
|---|---|
| What does it do? | Read the authorization server metadata. |
| What does it take? | Nothing. |
| What does it return? | Status 200 with a body of type [`AuthorizationServerMetadata`](https://docs.plotwork.dev/api/schemas.md#authorizationservermetadata). |
| What can go wrong? | `503` sign in with Plotwork is not available on this server (oauth.unavailable). Every failure uses the one error envelope. |

## What it does

Sign in with Plotwork's metadata (RFC 8414): the issuer, the endpoints, the scopes, PKCE S256 only, and how a client authenticates. Any origin may read it.

## Responses

| Status | Meaning | Body |
|---|---|---|
| 200 | The metadata. | [`AuthorizationServerMetadata`](https://docs.plotwork.dev/api/schemas.md#authorizationservermetadata) |
| 503 | Sign in with Plotwork is not available on this server (oauth.unavailable). | [`ErrorResponse`](https://docs.plotwork.dev/api/schemas.md#errorresponse) |

## Response body

A 200 answer has the type [`AuthorizationServerMetadata`](https://docs.plotwork.dev/api/schemas.md#authorizationservermetadata).

| Field | Type | Required | Description |
|---|---|---|---|
| `issuer` | `string` | yes |  |
| `authorization_endpoint` | `string` | yes |  |
| `token_endpoint` | `string` | yes |  |
| `revocation_endpoint` | `string` | yes |  |
| `response_types_supported` | `string[]` | yes |  |
| `grant_types_supported` | `string[]` | yes |  |
| `code_challenge_methods_supported` | `string[]` | yes |  |
| `token_endpoint_auth_methods_supported` | `string[]` | yes |  |
| `revocation_endpoint_auth_methods_supported` | `string[]` | yes |  |
| `scopes_supported` | `string[]` | yes |  |
| `authorization_response_iss_parameter_supported` | `boolean` | yes |  |
| `service_documentation` | `string` | yes |  |

## See also

| Doc | Why |
|---|---|
| [API reference](https://docs.plotwork.dev/api/reference.md) | Every endpoint, and the error envelope |
| [Schemas](https://docs.plotwork.dev/api/schemas.md) | Every request and response type |
| [Tool reference](https://docs.plotwork.dev/mcp/tools.md) | The operations as callable tools |
