I have a simple question that I want to use oauth 2.0 to secure API proxy, and I
think I need the client_id and client_secret to get access token, but I don't know
how to find those information.
so where I can find client_id and client_secret? I have checked my user setting, nothing there.
Please help,Thanks a lot!
Hey Jia,
You'll first need to create a developer app to retrieve a client ID and secret. From the new Edge experience:
You can read more about this process via the documentation found here.
It sounds like you may be using the password grant type Oauth workflow. I recommend taking a look at the linked documentation and examples here if you have additional questions about implementing this sort of workflow.
Hey kengilbert,
Thank you very much for your reply.
And I just created a new App and connected with a App Product which use Api Proxies.
And when I post like this
curl -i -H 'Content-Type: application/x-www-form-urlencoded'-X POST 'https://docs-test.apigee.net/oauth/accesstoken'-d 'grant_type=client_credentials&client_id=ns4fQc14Zg4hKFCNaSzArVuwszX95X&client_secret=ZIjFyTsNgQNyxI'
which was described in http://docs.apigee.com/api-services/content/oauth-20-client-credentials-grant-type, I got an error,
{"fault":{"faultstring":"Unable to identify proxy for host: secure and url: \/oauth\/accesstoken","detail":{"errorcode":"messaging.adaptors.http.flow.ApplicationNotFound"}}}
Could you help me to find out why?
Thank you!
Have you deployed your proxies yet? On the surface it looks like the proxies may not have been deployed yet to your environment.
Here's an article you can reference to double check your proxies have been deployed.
Yes, I have deployed the proxy, and the revision is 1.
And I am very confused about the relationship about App<->API product <-> API Proxy.
I just want to create a API proxy as a gateway to access some other backend service with oauth2, but I can't find a document to describe step by step about how to do that, please help!.
Thank you.
I recommend taking a look at the "Getting Started" section of the Apigee Edge documentation for more background. In particular, this page has a short "products, developers and apps" video that may help clarify the workflow.
Here's a working example of the Oauth password grant workflow you could use as a guide.