Hi guys, I'm working on Smartdocs, I am trying to display a resource from my proxy which has oAuth v2.0 policy.
So in Smartdocs I was filling out "Authentication Settings for API Revision"
I dont know what to fill in few fields, please guide me here..
http://prntscr.com/7967zp
I have went through this link,
http://apigee.com/docs/developer-services/content/using-smartdocs-document-apis
Solved! Go to Solution.
Dear @Barahalikar Siddharth ,
As per OAuth 2.0 Policy documentation here , you need to create both API Proxies which Authorises & Generate Access token. See an example here.
Policy says "Place this policy on custom API proxy flows to generate access tokens, refresh tokens, authorization codes, to perform token validation, and other operations. For example, you might put this policy on an API proxy endpoint called /authorizationcode
for apps to request authorization codes. Likewise, you might put this policy on an API proxy endpoint called /token
to generate an access token when that endpoint is called."
So, Your
Authorization URL will be : http://{ORGNAME}.apigee.net/v1/{PROXY_NAME}/authorizationcode
Access Token URL : http://{ORGNAME}.apigee.net/v1/{PROXY_NAME}/token
Authorization Header Name : Authorization
Cheers,
Anil Sagar
Dear @Barahalikar Siddharth ,
As per OAuth 2.0 Policy documentation here , you need to create both API Proxies which Authorises & Generate Access token. See an example here.
Policy says "Place this policy on custom API proxy flows to generate access tokens, refresh tokens, authorization codes, to perform token validation, and other operations. For example, you might put this policy on an API proxy endpoint called /authorizationcode
for apps to request authorization codes. Likewise, you might put this policy on an API proxy endpoint called /token
to generate an access token when that endpoint is called."
So, Your
Authorization URL will be : http://{ORGNAME}.apigee.net/v1/{PROXY_NAME}/authorizationcode
Access Token URL : http://{ORGNAME}.apigee.net/v1/{PROXY_NAME}/token
Authorization Header Name : Authorization
Cheers,
Anil Sagar
Thank you.
I have another query, my proxy has an Apikey validation and hence this time I want to set the apikey and its value in custom token under Authentication Settings for API.
http://apigee.com/docs/developer-services/content/using-smartdocs-document-apis
I have done it as mentioned in above doc.
So ideally this custom token should be attached as an query parameter to each request.
But when I'm sending the request it again asks to Set Custom Token, check this image
Why is it asking again? What should be done?
Dear @Barahalikar Siddharth , Please post it as a separate question.
User | Count |
---|---|
1 | |
1 | |
1 | |
1 | |
1 |