# Authentication

Provider API v0.6.5 · 2 operationer
Kilde: https://plas.redia.dk/provider/v0.6.5/authentication/

Ingen beskrivelse i specifikationen.

## Revoke access token

`POST` `/authentication/oauth2/revoke` · `RevokeToken`

Revoke an access token.

### Request body

`application/x-www-form-urlencoded` · valgfri

The token that we want to revoke.

[`RevokeTokenRequestBody`](https://plas.redia.dk/provider/v0.6.5/schemas/#RevokeTokenRequestBody)

### Svar

- `200` `Intet indhold i svaret.` — Token was successfully revoked, or the token was invalid (i.e. it was already 'revoked').

Fejlsvar: 400 — [Se den fælles kontrakt på versionssiden.](https://plas.redia.dk/provider/v0.6.5/)

## Authenticate client

`POST` `/authentication/oauth2/token` · `AuthenticateClient`

Authenticate the client to obtain a token.

It is recommended that the returned token is a JWT as this can come in handy if any part of the API,
e.g. the search API, needs to be delegated to a third party.  
The JWT could be used to ensure that only authorized clients have access to the third party API.


### Request body

`application/x-www-form-urlencoded` · valgfri

The authentication client credentials.

[`AuthenticationClientCredentialsRequestBody`](https://plas.redia.dk/provider/v0.6.5/schemas/#AuthenticationClientCredentialsRequestBody)

### Svar

- `200` [`AuthenticationClientResponseBody`](https://plas.redia.dk/provider/v0.6.5/schemas/#AuthenticationClientResponseBody) — Success

Fejlsvar: 400 · 401 — [Se den fælles kontrakt på versionssiden.](https://plas.redia.dk/provider/v0.6.5/)
