Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Not able to deploy oauth_advanced sample from github

Not applicable

I am working on a oAuth 2.0 – 3 legged use case. I was looking at the sample provided over github, it seems invoke.sh are missing in oauth-advanced folder or sub-folders. Also deploy.sh is missing some of the sub-folders. https://github.com/apigee/api-platform-samples/tree/master/sample-proxies/oauth-advanced

Also while uploading this bundle to apigee is failing by using New Proxy->upload bundle option. Error:

Server Error. Bundle is invalid. Unable to read/find APIProxy contents

Also I tried uploading through bash commands as mentioned in github->Readme.md.. I am trying to deploy it to my organization (ajitcts), but after code execution, non of the sample is getting reflected in my organization’s proxy list.

http://apigee.com/docs/api-services/content/oauth-v2-policy-authorization-code-grant-type

I followed the steps as mentioned in :

http://apigee.com/docs/api-services/content/using-sample-api-proxies

http://apigee.com/docs/api-services/samples/using-samples

Solved Solved
0 9 735
1 ACCEPTED SOLUTION

Hi Ajit,

I believe I see where you're having trouble. The oauth-advanced sample doesn't follow the deployment pattern of the other samples, as described in api-platform-samples/README. Rather, for oauth-advanced, you must carefully follow the instructions specifically for that sample: api-platform-samples/oauth-advanced/README.

This sample has four separate apps that you must deploy and configure separately. All four are required to be deployed for this advanced example to work. The README walks you through the steps that you must follow.

I just cloned api-platform-samples, and successfully deployed each of the four apps in that project to my Edge cloud account. Please try again, following the oauth-advanced/README carefully, and let us know if you have success.

For example, you'll do these steps:

1. git clone https://github.com/apigee/api-platform-samples.git
2. cd api-platform-samples/sample-proxies/oauth-advanced
3. vi ../../setup/setenv..sh [edit this file with your account information]


-now we deploy the first app-

4. cd login-app
5. ./deploy.sh [enter your Edge password]

You will see something like this:


Deploying login-app to:
 Env: test 
 Org: docs 
 Url: https://github.com/apigee/api-platform-samples.git 
 For: wwitman@apigee.com
"login-app" Revision 2
  deployed
  environment = test
  base path = /
  URI = https://github.com/apigee/api-platform-samples.git
  URI = https://github.com/apigee/api-platform-samples.git

Follow this pattern for each of the four apps: login-app, oauth2, user-mgmt-v1, and webserver-app. Then, follow the README for details on how to run the oauth example.

View solution in original post

9 REPLIES 9