OAuth 2.
0 Setup for
SAP Hybris
(Connection with
POSTMAN to use APIs)
WRITTEN BY:
VISHAL SHARMA
SAP Hybris Professional
Ecommerce Experienced Professional
Core Developer/Functional Associate
VISHAL SHARMA
Steps
Step 1- Start your Hybris Server
Step 2- Open POSTMAN click on Plus icon to create a
new collection
Step 3- Go to Authorization tab
Step 4- Click on Type drop down
Step 5- Select OAuth 2.0
Step-2
Step-3
Step-4
Step-5
VISHAL SHARMA
Step 6- Open HAC >Impex Import and create
OAuthClientDetails by running below Impex
INSERT_UPDATE
OAuthClientDetails;clientId[unique=true];resourceIds;scope;authorizedGrantTypes
;authorities ;clientSecret;registeredRedirectUri
;qwe ;Vishal@123
;basic;implicit,client_credentials,password;ROLE_TRUSTED_CLIENT,ROLE_CLIENT,ROLE_CUST
OMERMANAGERGROUP,ROLE_CUSTOMERGROUP;secret;
Step 7- Go back to POSTMAN scroll down and Go to
Configuration Options
Step-7
Step 8- Fill the configuration Details as below
grant type : Password Credentials
Access Token URL : https://localhost:9002/authorizationserver/oauth/token
Username : admin
Password: nimda or your Hybris setup admin pwd
Client ID: qwe -------> As used in Impex
Client secret : secret/password -------> Reset this from backoffice
scope: basic
Client Authentication: send as basic Auth header
VISHAL SHARMA
Step-8
Step 9- Click on Get New Access Tokens and.......
Step-9
VISHAL SHARMA
Step 10- BOOM!! Your Authentication is completed ,
Click Proceed
Step-10
Step 11 - Click on Use Token
Step-11
Your Hybris local is now connected with the
POSTMAN you can freely use any API or OCC
webservices to get the response of the service
requests
VISHAL SHARMA