Difference between revisions of "Auth profile SoapUI"

From i2Rest
Jump to: navigation, search
Line 12: Line 12:
 
<div style="padding-bottom:6px">[[File:Auth-soapui-4.png|800px]]<div>
 
<div style="padding-bottom:6px">[[File:Auth-soapui-4.png|800px]]<div>
 
Choose "Authorization Code Grant". The rest fields must be filled as follows:<br>
 
Choose "Authorization Code Grant". The rest fields must be filled as follows:<br>
::"Client identification" and "Client Secret" are the Login/Password of the IBM i user, defined as a i2Rest Server client in configuration *.json.
+
:"Client identification" and "Client Secret" are the Login/Password of the IBM i user, defined as a i2Rest Server client in configuration *.json.
::Assuming that you didn't change default settings in configuration *.json enpoints should look like <main gate url>/[[OAuth2_object#Endpoints|<value described in OAuth2 object defenition>]].<br>
+
:Assuming that you didn't change default settings in configuration *.json, "Authorization URI" and "Access Token URI" should look like <main gate url>/[[OAuth2_object#Endpoints|<value described  
 +
in OAuth2 object defenition>]].<br>
 +
:"Redireсt URI" is a value, defined in [[OAuth2_object#Clients|Client object]] in configuration *.json.<br>
 
Then click on "Get token"
 
Then click on "Get token"
 
<div style="padding-bottom:6px">[[File:Auth-soapui-5.png]]<div>
 
<div style="padding-bottom:6px">[[File:Auth-soapui-5.png]]<div>

Revision as of 17:38, 25 June 2020

We assume that you already have Soap UI installed. If not, open source installation package could be found on https://www.soapui.org/downloads/soapui/.
Run SOAP UI, if you alredy have a project, you would like to update with authorization profile - go to it. Otherwise go to File ---> New REST Project. As an example we will create Managment Api call poject. Specify URI to request as follows:

<Managment Gate URL>

where <Managment Gate URL> is the value in your configuration *.json.

Auth soapui 1.png

Find Auth tab in the left bottom corner of the screen, then choose "Add New Authorization..." .

Auth soapui 2.png

Choose "OAuth2.0" authorization type, profile name is up to you:

Auth soapui 3.png

Now go to "Get token":

Auth-soapui-4.png

Choose "Authorization Code Grant". The rest fields must be filled as follows:

"Client identification" and "Client Secret" are the Login/Password of the IBM i user, defined as a i2Rest Server client in configuration *.json.
Assuming that you didn't change default settings in configuration *.json, "Authorization URI" and "Access Token URI" should look like <main gate url>/<value described in OAuth2 object defenition>.
"Redireсt URI" is a value, defined in Client object in configuration *.json.

Then click on "Get token"

Auth-soapui-5.png
Auth-soapui-6.png
Auth-soapui-7.png
Auth-soapui-8.png