Difference between revisions of "I2Rest Basic PowerApps Connector"
m |
m |
||
Line 10: | Line 10: | ||
3. Select "Import an OpenAPI from URL":<br/> | 3. Select "Import an OpenAPI from URL":<br/> | ||
− | [[File:Power Apps - Mozilla Firefox | + | [[File:Power Apps - Mozilla Firefox 13.07.2020 8 35 41.png|500px]]<br/><br/> |
4. Enter Connector name and URL for the Open API (<code><your_i2Rest_server>/swagger20/<mount_point></code>), press Import:<br/> | 4. Enter Connector name and URL for the Open API (<code><your_i2Rest_server>/swagger20/<mount_point></code>), press Import:<br/> | ||
− | [[File:Power Apps - Mozilla Firefox | + | [[File:Power Apps - Mozilla Firefox 13.07.2020 8 35 45.png|500px]]<br/><br/> |
5. Press Continue:<br/> | 5. Press Continue:<br/> | ||
Line 19: | Line 19: | ||
6. Press "Security->". Enter fields Client Id, Client secret. Copy value of Token URL and paste it to Refresh URL:<br/> | 6. Press "Security->". Enter fields Client Id, Client secret. Copy value of Token URL and paste it to Refresh URL:<br/> | ||
− | [[File:Power Apps - Mozilla Firefox | + | [[File:Power Apps - Mozilla Firefox 13.07.2020 8 33 07.png|500px]]<br/><br/> |
7. Press Definition->:<br/> | 7. Press Definition->:<br/> |
Latest revision as of 08:40, 13 July 2020
This scenario shows you an example how to create Power Apps custom connector to i2Rest Server.
It assumes that you have completed the case Configuring OAuth2 authorization and secured main gate with https
1. Open Power Apps Custom connector page:
2. Press "New custom connector":
3. Select "Import an OpenAPI from URL":
4. Enter Connector name and URL for the Open API (<your_i2Rest_server>/swagger20/<mount_point>
), press Import:
6. Press "Security->". Enter fields Client Id, Client secret. Copy value of Token URL and paste it to Refresh URL:
8. Press "Create connector" on top of screen, then click on "2. Security" tab:
9. Copy value of field "Redirect URL" and paste it into the redirect_uri parameter in your i2Rest Server configuration file:
"TSTCLNT":{"redirect_uri":"https://global.consent.azure-apim.net/redirect", "description":"Test client", "valid_scopes":["run_program"], "valid_grant_types":["authorization_code"]}
10. Restart i2Rest Server to apply changed redirect_uri
13. Press "Create". It will start OAuth2 authorization code flow and open Login page:
14. Enter IBM i user ID (i2Rest Server configuration file) and password and press Login:
15. Press "Allowed" to allow client TSTCLNT to run programs on IBM i under authority of USRX. New connection will be created:
16. Go back to "Custom Connectors" tab:
17. Press "Edit" (pencil icon) and go to "4. Test" tab, you'll see newly created connection in "Selected connection" field:
18. Enter operation parameters:
19. Press "Test operation" to call API using OAuth2 token:
You'll see the response from i2Rest Server:
Press "Test operation" again - server will respond with incremented output.echo
value, job will be the same:
We just finished creating a new MS Power Apps Custom connector to i2Rest Server.