Posts

Showing posts with the label access token

Obtaining Business Owner Details from Wso2 APPM 2.1.0

Image
At the time when I'm writing this APPM 2.1.0 is yet to release and I will use APPM 2.1.0 Alpha pack to obtain business owner details. How to register the API client application   We can use post man client to send below payload with the headers to register API client application. Headers Authorization : Basic YWRtaW46YWRtaW4= ('YWRtaW46YWRtaW4=' is base64 encoded value of admin:admin) Content-Type  :application/json Payload { "callbackUrl":"www.google.lk",clientName":"app_11_04_0013","tokenScope": "Production","owner":"admin","grantType":"password refresh_token","saasApp":true} The sample response is as below {"clientId":"9Xb0a5VIqM3lh40Sz9nKNDTHK5ga","clientName":"app_11_04_0013", "CallBackURL":"www.google.lk","clientSecret":"Jxq...

Create Access Token using SAML2 Bearer Grant Type and Invoke APIS in wso2 API Manager

Image
First we need to create an API in wso2 API Manager and obtain the client id and secret. Then we can use travelocity sample application in wso2 Identity server to generate access token. Configure travelocity Sample Application In order to use travelocity sample application we need to change following configurations in travelocity.properties file which is located in  <Tomcat_Home>/webapps/travelocity.com/WEB-INF/classes EnableSAML2Grant=true OAuth2.TokenURL=https://localhost:8244/token (This is the token endpoint of APIM. The APIM is running with a port offset of 1) OAuth2.ClientId=TTAoWMohG0lcO8UmN8CRskDT0uMa (Client Id and Client Secret of API) OAuth2.ClientSecret=tFdgrDb8BNxPkqWoBmTL7rvGBLEa Configure Identity Server to add travelocty application   The AudienceRestriction and the Recipient values we configure here should be equal and the same value shuld be configured as the alias. Configure Identiy Provider in APIM   ...