Get API OAuth token using HTTP Request app

Post Reply
wkopp
Member
Posts: 24
Joined: Mon Sep 16, 2019 8:20 pm

Get API OAuth token using HTTP Request app

Post by wkopp »

Hello everyone,

I'm trying to get an API Token using the HTTP request app but I don't have any experience in this area. I have tested the connection and details using Postman and that works fine. I just don't know where to include that info in the HTTP request app. I haven't found any good details for using the app. Apparently they expect the user to have some idea of what they're doing. :) (Once I get the token I'll need to use it in a second http request to get info from an API.)

This is what I have in Postman Authorization Settings (actual URL and credentials have been replaced):

- Configure New Token section -
Token Name: bearer
Grant type: Client Credentials
Access Token URL: https://myurl.com/OmsIdentityServer/connect/authorize
Client ID: myclientID
Client Secret: myclientSecret
Scope: myScope
Client Authentication: Send as Basic Auth header


This is what I have in the Switch HTTP request Settings:

URL: https://myurl.com/OmsIdentityServer/connect/authorize
Request Type: GET
Authentication scheme: OAuth
Authorization: client_id=myclientID client_secret=myclientSecret
Parameters:
scope=myScope
Headers:
<none>
Response: Inject as new job

Any help will be greatly appreciated!
Thanks as always...
Post Reply