apigee / apigeecli

This is a tool to interact with Apigee APIs. The tool lets you manage (create, del, get, list) environments, proxies, etc.
Apache License 2.0
51 stars 28 forks source link

Create a proxy with pre existing oauth2 policies #502

Closed adielskaistyael closed 1 month ago

adielskaistyael commented 1 month ago

I have been trying to create a proxy that is using an oauth2 policy with the operation VerifyAccessToken. It seems possible when i look at the file: apigeecli/internal/bundlegen/policies/policies.go lines 38-49, but I don't understand exactly how.

srinandan commented 1 month ago

Depending on where you want the policies added, you can choose one of the two methods:

Here is the command

apigeecli apis create openapi --oas-base-folderpath=./test --oas-name=minspec-oauth.yaml --name=test --default-token