<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Bearer - Tag - Techland</title>
    <link>https://techland.info/tags/bearer/</link>
    <description>Blog dédié à la tech en général</description>
    <generator>Hugo 0.153.2 &amp; FixIt v0.4.0-alpha-20250805041424-57ccd470</generator>
    <language>fr</language>
    <managingEditor>contact@techland.info (LE BARO Romain)</managingEditor>
    <webMaster>contact@techland.info (LE BARO Romain)</webMaster>
    <lastBuildDate>Thu, 19 Jun 2025 17:23:12 +0200</lastBuildDate>
    <atom:link href="https://techland.info/tags/bearer/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Injection de token oauth2 dans des tests JUnit</title>
      <link>https://techland.info/posts/java/8a8ec78/</link>
      <pubDate>Thu, 19 Jun 2025 17:23:12 +0200</pubDate><author>contact@techland.info (LE BARO Romain)</author>
      <guid>https://techland.info/posts/java/8a8ec78/</guid>
      <category domain="https://techland.info/categories/d%C3%A9veloppement/">Développement</category>
      <description>&lt;p&gt;Lorsque l&amp;rsquo;on développe des tests API, il arrive fréquemment de devoir s&amp;rsquo;authentifier pour effectuer l&amp;rsquo;appel. Réécrire le code permettant de récupérer un token valide est non seulement fastidieux, source d&amp;rsquo;erreur, mais également une mauvaise pratique en termes de maintenabilité. Nous allons voir comment injecter un token valide directement en paramètre de test JUnit de manière à pouvoir l&amp;rsquo;utiliser simplement là où cela est nécessaire.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
