<page xmlns="http://projectmallard.org/1.0/"
      type="topic" id="api-auth" xml:lang="fr">

<info>
  <link type="guide" xref="index#api" />
  <revision docversion="0.1" date="2013-01-04" status="draft"/>
  <credit type="author">
    <name>Frédéric Péters</name>
    <email>fpeters@entrouvert.com</email>
  </credit>
  <desc>Clé d'utilisation, utilisateurs, sessions, etc.</desc>

</info>

<title>Authentification</title>

<p>
Différentes méthodes d'authentification sont possibles.
</p>


<section id="http-auth">
  <title>Authentification HTTP basique</title>

  <screen>
<output style="prompt">$ </output><input>curl -H "Accept: application/json" \
       -u <var>identifiant</var>:<var>mot_de_passe</var> \
       https://www.example.net/inscriptions/newsletter/16</input>
</screen>

</section>


</page>
