Pour participer aux flux OAuth 2.0 sur Apigee, les applications clientes doivent être enregistrées.
Qu'est-ce que l'enregistrement ?
L'enregistrement permet à Apigee (le serveur d'autorisation) d'identifier votre application de manière unique. Lorsque vous enregistrez votre application, vous recevez deux clés : un ID client et un code secret du client. L'application a besoin de ces clés lors de la négociation des jetons d'accès avec le serveur d'autorisation.
Procédure rapide
Si vous souhaitez enregistrer une nouvelle application :
Accédez à la page "Applications de développement" comme décrit ci-dessous.
Pour accéder à la page "Applications de développement", procédez comme suit :
Sélectionnez Publier > Applications dans la barre de navigation de gauche.
Cliquez sur + App (+ Application).
Remplissez le formulaire :
Saisissez un nom et un nom à afficher pour l'application.
Sélectionnez un développeur. Vous pouvez choisir l'un des développeurs par défaut ou créer le vôtre.
(Facultatif) Saisissez une URL de rappel. Ce champ est utilisé pour les flux de type d'autorisation OAuth à trois acteurs. C'est ici qu'Apigee redirige l'utilisateur une fois qu'il s'est authentifié (connecté) sur le serveur de ressources. Il doit s'agir d'une URL complète. Vous devez donc saisir une chaîne de type https://www.example.com. Pour en savoir plus sur l'autorisation OAuth à trois acteurs, consultez la page Mettre en œuvre le type d'attribution de code d'autorisation.
Ajoutez un produit d'API. Vous pouvez sélectionner un produit existant ou créer le vôtre.
Ignorez la section des attributs personnalisés pour le moment.
Cliquez sur Create (Créer).
Recherchez votre nouvelle application dans la liste des applications de développeur, puis sélectionnez-la.
Cliquez sur Afficher pour consulter les valeurs d'ID de client et de code secret du client.
Sauf indication contraire, le contenu de cette page est régi par une licence Creative Commons Attribution 4.0, et les échantillons de code sont régis par une licence Apache 2.0. Pour en savoir plus, consultez les Règles du site Google Developers. Java est une marque déposée d'Oracle et/ou de ses sociétés affiliées.
Dernière mise à jour le 2025/09/04 (UTC).
[[["Facile à comprendre","easyToUnderstand","thumb-up"],["J'ai pu résoudre mon problème","solvedMyProblem","thumb-up"],["Autre","otherUp","thumb-up"]],[["Difficile à comprendre","hardToUnderstand","thumb-down"],["Informations ou exemple de code incorrects","incorrectInformationOrSampleCode","thumb-down"],["Il n'y a pas l'information/les exemples dont j'ai besoin","missingTheInformationSamplesINeed","thumb-down"],["Problème de traduction","translationIssue","thumb-down"],["Autre","otherDown","thumb-down"]],["Dernière mise à jour le 2025/09/04 (UTC)."],[[["\u003cp\u003eThis content is applicable to both Apigee and Apigee hybrid platforms, and clients must register their applications to participate in OAuth 2.0 flows on Apigee.\u003c/p\u003e\n"],["\u003cp\u003eApp registration in Apigee involves uniquely identifying the app to the authorization server, and upon registration, a client ID and client secret are issued to the app.\u003c/p\u003e\n"],["\u003cp\u003eTo register a new app, you can navigate to the Developer Apps page in the Apigee UI by going to Publish > Apps and then clicking + App.\u003c/p\u003e\n"],["\u003cp\u003eThe registration process requires basic details such as app name, display name, the associated developer, and an API product, with an optional callback URL for three-legged OAuth grant type flows.\u003c/p\u003e\n"],["\u003cp\u003eAfter app registration, the Consumer ID (client ID) and Consumer Secret (client secret) values can be accessed by selecting the app from the Developer Apps list and clicking Show.\u003c/p\u003e\n"]]],[],null,["# Registering client apps\n\n*This page\napplies to **Apigee** and **Apigee hybrid**.*\n\n\n*View [Apigee Edge](https://docs.apigee.com/api-platform/get-started/what-apigee-edge) documentation.*\n\nTo participate in OAuth 2.0 flows on Apigee, client apps must be registered.\n\nWhat is registration?\n---------------------\n\nRegistration allows Apigee (the authorization server) to uniquely identify your app. When\nyou register your app, you receive back two keys: a client ID and client secret. The app needs\nthese keys when negotiating for access tokens with the authorization server.\n\nQuick steps\n-----------\n\nIf you want to register a new app:\n\n1. Access the Developer Apps page, as described below. To access the Developer Apps page:\n\n 1. Open the [Apigee UI](https://apigee.google.com).\n 2. Select **Publish \\\u003e Apps** in the left navigation bar.\n 3. Click **+ App**\n 4. Fill out the form:\n 1. Enter a name and display name for the app.\n 2. Select a developer (you can choose one of the default developers or [create your\n own](/apigee/docs/api-platform/publish/adding-developers-your-api-product#add)).\n 3. (Optional) Enter a callback URL. This is used for \"three-legged\" OAuth grant type flows. This is where Apigee redirects the user after they complete authentication (login) with the resource server. It has to be a complete URL, so you might enter something like `https://www.example.com`. For more about three-legged OAuth, see [Implementing\n the authorization code grant type](/apigee/docs/api-platform/security/oauth/oauth-v2-policy-authorization-code-grant-type).\n 4. Add an API product. You can select an existing product or [create your own](/apigee/docs/api-platform/publish/create-api-products#add).\n 5. Skip the custom attributes section for now.\n 6. Click **Create**.\n 5. Find your new app in the list of developer apps and select it.\n 6. Click **Show** to see the Consumer ID (client ID) and Consumer Secret (client secret) values.\n\n More information\n ----------------\n\n For a more detailed discussion of app registration, see\n [Register apps and manage API\n keys](/apigee/docs/api-platform/publish/creating-apps-surface-your-api). If you'd like to know more about the role of API products, see\n [What is an API product?](/apigee/docs/api-platform/publish/what-api-product)."]]