Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.
This tutorial consists of detailed steps of generating OAuth Tokens for Grant type Authorization code and Implicit Grant.
By Sabreen Irfana
Integration Server supports the following Grant types:
This tutorial is intended to provide Information on how to generate OAuth tokens for given grant type Implicit and Authorization code grant.
Following are the required Software AG components in any given environment:
Authorization Server Settings to Require HTTPS as No:
Client Name: ISClient1 Version: 1.0 Type: Confidential Description: IS_Authorization Code Grant Redirect URIs: http://<ISHostname:port>:7777/invoke/oauth/tokenForAuthCode Allowed Grant: Check Authorization Code Grant
Token
Expiration Interval: Check Never Expires Refresh Count: Limit:0
Successfully registered client ISClient1, version 1.0 message should be displayed. Client ID Should be generated as shown below
Create Scope
Scope Configuration Name: Scope1 Description: IS_Scope1 Folders and services: InvokeOauth:AddInts
Associate scope with the client
Click Associate Scopes to Clients
Scopes: Select ISClient(1.0) from Remaining Clients and Move to Clients associate with Scope Clients: Select Scope1 from Remaining Scopes and Move to Scope in the Client
Get ClientID and Client Secret from Client which is already created.
- ID: 1e1cf7507e73473ca879e1307496b55e - Secret: ed12a6e1de5a49719f02b3cc57d198a4
Invoke Designer and connect to Integration Server and Set Service Deployment prospective
http://<IShost>:<ISport>/invoke/pub.oauth/authorize?client_id=<Client_id_value>&scope=<Scop e_name> &response_type=code
example:
http://banrndsrv04:9403/invoke/pub.oauth/authorize?client_id=1e1cf7507e73473ca879e1307 496b55e&scope=Scope1&response_type=code
If Invocation requires credentials provide the following details: Username: Administrator Password: manage
expires_in is -1 and we specified never expire while creating client
URL: http://banrndsrv04:9403/invoke/InvokeOauth:AddInts?num1=1&num2=2
Provided URL invocation of Service defined under Scope
Header: Key: Authorization Value: Bearer 84e0324f70de4a5ab695eb87e27b0406
InvokeOauth.zip (4.4 KB)
OAuthRedirectionEndpoint.zip (21.9 KB)