apigee

Apigee - modify target path when using targetserver

倾然丶 夕夏残阳落幕 提交于 2019-12-23 01:09:05
问题 I have an API proxy that needs to be able to modify the path component of the eventual Target URL. This appears fairly straightforward in cases where there's a defined Target Endpoint URL for the entire proxy but we are using TargetServers and VirtualHosts which apparently are assigned after the TargetEndpoint PreFlow I have a JS function in the Target Endpoint PreFlow and get unspecified JS errors when I attempt to modify context.targetRequest.path. Attempts to modify the path part of the

In Apigee, how to get a custom attribute value for a developer using the AccessEntity policy and later in Javascript?

元气小坏坏 提交于 2019-12-22 10:57:13
问题 There is a custom attribute assigned to a developer called 'XYZ'. In the API proxy, how can the AccessEntity policy (along with the AssignMessage and ExtractVariable policies as given in the tutorial: http://apigee.com/docs/api-services/content/retrieve-entity-profiles-using-accessentity) be used to retrieve the value for it so that it can be accessed further in Javascript? The example given in the tutorial doc is not very clear. I have the following configurations that are not working. 'XYZ'

Cannot login to Apache Usergrid deployed on Tomcat7

限于喜欢 提交于 2019-12-21 20:16:06
问题 I downloaded and built Apache Usergrid on my Ubuntu 14.04 LTS and deployed the ROOT.war on my local tomcat7 server as per instructions given at https://usergrid.incubator.apache.org/docs/deploy-local/. I copied usergrid-deployment.properties file to CATALINA_HOME/lib, restarted Tomcat server and am trying to test it using http://localhost:8080/system/database/setup as per the instructions. I get a login screen that has the following text at the top: [ A username and password are being

Generate JWT Token in Keycloak and get the public key to verify the JWT token on a third party platform

隐身守侯 提交于 2019-12-21 09:12:04
问题 There is an Endpoint to a backend server which gives a JSON response on pinging and is protected by an Apigee Edge Proxy . Currently, this endpoint has no security and we want to implement Bearer only token authentication for all the clients making the request. All the clients making the requests to API will send that JWT token in Authorization Bearer and Apigee Edge will be used to verify the JWT Token. How do I use Keycloak to generate this JWT token? Also, Apigee needs a public key of the

Call Another API Proxy from one API Proxy in the same organization

烈酒焚心 提交于 2019-12-21 06:45:23
问题 I have an existing API proxy in my organization which I want to call in my other API proxy. Is there any other way to implement this? One of the considerations in the API proxy development and design is not to implement ServiceCallout from one API proxy to another in the same organization, or recursively from an API proxy back to itself as indicated in the documentation. 回答1: You can call one API proxy in other like any other request. But i believe this is not something recommended as this

apigee “Subject does not have permission” to get logged in user

家住魔仙堡 提交于 2019-12-13 04:14:37
问题 Code that was previously working to get the logged in user is now failing. For the default role I have a few permissions including this one (in the list at /roles/xxx/permissions): "get:/users/me" To verify I didn't break something in the API, I logged in from Curl (names modified to protect the guilty): curl -X POST "https://api.usergrid.com/xxx/xxx/token" -d '{"grant_type":"password", "username":"test", "password":"xxx"}' This gets a valid response with an access token: {"access_token":

Apigee fault handling for CLASSIFICATION_FAILURE

旧城冷巷雨未停 提交于 2019-12-13 02:59:06
问题 In Apigee, can fault handling - specifying a FaultRule and a RaiseFault policy be used to handle and provide a custom message for: { "fault": { "faultstring": "Not Found", "detail": { "errorcode": "CLASSIFICATION_FAILURE" } } } If this can be done, should the 'Condition' for the fault rule be 'fault.name = "CLASSIFICATION_FAILURE"'? I tried this and it is not working. 回答1: CLASSIFICATION_FAILURE is a system level failure to find an API Proxy for the given URL/URI. The request will not even

How do I send data from 1 api to another api using apigee

青春壹個敷衍的年華 提交于 2019-12-13 02:49:31
问题 I am recently started using apigee proxy.Please do not block me. I am using postman to post data into proxy. I have assigned a extract policy to extract some values from the json data like speed,latitude, longitude etc. Then I have used a assign policy to convert speed into gpsspeed etc as per client requirement. After that i use javascript policy to output if speed is higher > 50 then high or low. I am giving an example of the data. Now i want to forward the resultant data to another api

How do you correctly return Location headers and do HATEOAS with Apigee?

女生的网名这么多〃 提交于 2019-12-12 04:57:18
问题 Our Apigee configuration looks a little like this: Netscaler LB -> Apigee Router/Message Processor -> Netscaler LB - Target Server(s) The target server in this case is a Java appliation with Jersey, and I'm using the Jersey @Context to retrieve the relevant URI info to set for example Location headers, but all the request details seem to relate to the Netscaler and not the originating request. If we use an AssignMessage policy and manually set the X-Forwarded-Host URL to be the URL the client

OAuth 2.0 And Google Cloud Print

一笑奈何 提交于 2019-12-12 03:44:38
问题 I created a project called: "projectprint-123" https://console.developers.google.com/apis/credentials/oauthclient?project=projectprint-123 Credentials Web application Name : projectprint-123 What to ask can the 1. Authorized JavaScript origins 2. Authorized redirect URIs Put EMPTY? Because I testing localhost. OK. I proceed to empty. What is Oauth consent screen? I only fill in Email address at this part. OK. I proceed next. Then I try https://www.google.com/cloudprint/getauthcode? printerid