# OAuth 2 Registration

Avant qu’un **Client** ne puisse communiquer avec un **Authorization Server**, il faut procéder à un enregistrement.

Cet enregistrement peut se faire de différentes manières *(hors spec OAuth 2)*.

* Par API.
* Via une interface applicative.
* Offline.
* Un mix.
* L'**Authorization Server** doit à minima obtenir les informations suivantes :
  * **Client type** : **confidential** ou **public**.
  * **Redirect URIs** : La ou les URIs vers lesquelles l'**Authorization Server** redirigera le **Resource Owner** après validation des autorisations.
* Si le **client type** est **public**, l'**Authorization Server** ne fournira pas de **Client Secret** et peut restreindre l’accès aux ressources.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://guide-api-rest.marmicode.fr/securite-des-apis-rest/oauth-2/oauth-2-registration.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
