Skip to main content
Nous publions des mises à jour fréquentes de notre documentation, et la traduction de cette page peut encore être en cours. Pour obtenir les informations les plus actuelles, consultez la documentation anglaise.

Creating a custom badge for your OAuth App

Vous pouvez remplacer le badge par défaut sur votre application OAuth en chargeant votre propre image de logo et en personnalisant l’arrière-plan.

By default, a new OAuth App will have an automatically generated identicon. An identicon badge looks something like this:

Screenshot of an identicon, which consists of white pixels in a random pattern on a circular yellow background.

After you create an OAuth App, you can customize the app's badge by uploading a logo and selecting a background color. A badge is a square logo image inside of a circular badge. You can choose a background color for the badge, which can be used to visually distinguish your app.

Your logo should be a PNG, JPG, or GIF file under 1 MB in size. For the best quality rendering, we recommend an image size of at least 200px x 200px.

To create a custom badge:

  1. Dans le coin supérieur droit d’une page, cliquez sur votre photo de profil, puis sur Paramètres.

    Capture d’écran du menu du compte de GitHub montrant les options permettant aux utilisateurs d’afficher et de modifier leur profil, leur contenu et leurs paramètres. L’élément de menu « Paramètres » est présenté en orange foncé.

  2. Dans la barre latérale gauche, cliquez sur Paramètres de développeur.

  3. Dans la barre latérale gauche, cliquez sur OAuth Apps .

  4. Sélectionnez l’OAuth App à modifier.

  5. In "Application logo", drag-and-drop an image from a local folder or click Upload new logo to select an image from your computer.

  6. Crop your picture. When you're done, click Set new application logo.

  7. In "Badge background color", type the hexadecimal color code of the background color for your badge.

  8. Cliquez sur Mettre à jour une application.