cancel
Showing results for 
Search instead for 
Did you mean: 

unable to get the response from cmswebservice https://localhost:9002/cmswebservices/v1/sites

Former Member
0 Kudos

Hi I am trying to get details of all sites in system using cmswebservice with below REST call https://localhost:9002/cmswebservices/v1/sites

But its giving me error access denied , how does i solve this problem ?

Can anybody help

Former Member
0 Kudos

I think no body is able to run this webservice till now ?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Farid,

You need to pass access token along with the url.

Auth URL: https://localhost:9002/authorizationserver/oauth/authorize

Token URL: https://localhost:9002/authorizationserver/oauth/token

You could use valid client credentials. For e.g. trusted_client.

This will return some access token eg. access_token af6f2a72-3deb-47db-a792-d80376b52472

Then you need to make a call to URL using GET method https://localhost:9002/cmswebservices/v1/sites?access_token=af6f2a72-3deb-47db-a792-d80376b52472

You will get response as per attachment.

Please let me know still if are facing some issue. link text

Answers (2)

Answers (2)

0 Kudos

i have one one stage get api that ues Authorization API

example : https://111.11.111.11:9002/authorizationserver/oauth/token

This is working fine but not able to access the authorize API with stage url

example: https://stage....../authorizationserver/oauth/token

I am using client credential granttype.

is there any way to access the /token with public domain like stage.testsite.com/authorizationserver/oauth/token

please answer

Former Member
0 Kudos

Hi, i facing the same problem. how to send the access_token to Auth URL: https://localhost:9002/authorizationserver/oauth/authorize. When send the client detials to Auth URL: https://localhost:9002/authorizationserver/oauth/token returns the token but not able to pass to the Auth URL: https://localhost:9002/authorizationserver/oauth/authorize.

Former Member
0 Kudos

Please mention the steps.