on 06-27-2016 2:04 PM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
5 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.