![]() Scroll down to the bottom until you see “Get New Access Token” and click “Get New Access Token”. In case you're missing any of them, please find them below.Ĭallback URL: – or the one you set in your app.Ĭlient Authentication: “Send client credentials in body” These should be already been filled in when you imported the file. Paste the “Client ID” and “Client Secret” that you got at the end of the previous section. Scroll down in that column until you see “Client ID” and “Client Secret”. You don't have an access token yet, but it'll show there soon. In the right-hand side column, you'll see information about tokens. Once you've selected it, click the “Authorization” tab in the main window. The file is named “OAuth 2 with Administrate.postman_collection.json”.Īfter the file has been imported, go to the “Administrate” folder and select “OAuth 2 with Administrate for GraphQL” in the left-hand sidebar. For more info on this step, you can refer to this page. To import this file into Postman, open Postman and click “Import” and drag and drop the file onto the window, or select it in your file manager. Its name is “OAuth 2 with Administrate.postman_collection.json”. This is a template request to authenticate with OAuth 2.0, so you don't have to fill in all the fields manually. Download the file available at the bottom of this page.Copy both.ĭownload and install Postman if you haven't already, and launch Postman on your computer. This will generate an API Key (also called Client ID) and API Secret (also called Client Secret). Their OAuth callback URL is Ĭlick “Create application” now. They provide an OAuth callback URL that can be used for OAuth 2.0. Postman is a service for building and using APIs. The name will just show when you connect the app with an Administrate instance.įor the “OAuth callback URL” field: If you've already created a GraphQL app supporting OAuth 2.0, enter your OAuth callback URL here, otherwise, you can use Postman for development. ![]() Also, apps are not limited to your developer instance, and they can be installed in any Administrate instance by a superuser.Įnter any application name you like. Note that there is no limit to the number of apps that you create in your developer account. Create a developer account if you haven't already, so you can start creating developer apps. Generating a Client ID and Client secretįirst, we'll create an app in a developer account. This article will show you how to get an access token in Postman. However, if it's your first time using OAuth 2.0 or if you'd like to get set up quickly, you may want to use Postman. On that page, you'll learn how to authenticate an application that you built or use with an Administrate instance. You'll find how to access our GraphQL API and authenticate using OAuth 2.0 on our Developer Portal. Generating a Client ID and Client secret.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |