apigee

ApiGee OAUTH Authorization

此生再无相见时 提交于 2019-12-10 10:44:59
问题 I'm new in apigee. I need to make a callout in my proxy to fetch data from google fusion tables. FT Service require secure call using oath 2.0. I'm already made this workflow using custom proxy (without any OAUTH policy, and store token, refresh token and expiry in Key Value Map) also I made js to calculate expiration time and condition callout to refresh token. I understand that this is not correct way but I still can't get a clue how to make this call using building Oauth policy. :( It's

Apigee - how to redirect to a different resource

扶醉桌前 提交于 2019-12-08 10:45:47
问题 I have an API proxy created with Apigee which works properly. However, I want to make a change in a resource name. Currently, I have the following resource: <proxy>/collection/{Id}/product s which redirects to <myService>/collection/{Id}/products I want to rename the proxy resource like this: <proxy>/collection/{Id}/apps which redirects to <myService>/collection/{Id}/products What is the best way to to that with Apigee? Cheers, Chavdar 回答1: If you'd like to proxy requests for /collection/{id}

Apigee - modify target path when using targetserver

扶醉桌前 提交于 2019-12-06 15:14:51
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 incoming proxy during Proxy PreFlow also failed. Dumping the values of targetRequest gives: host=empty

ApiGee OAUTH Authorization

寵の児 提交于 2019-12-06 05:29:42
I'm new in apigee. I need to make a callout in my proxy to fetch data from google fusion tables. FT Service require secure call using oath 2.0. I'm already made this workflow using custom proxy (without any OAUTH policy, and store token, refresh token and expiry in Key Value Map) also I made js to calculate expiration time and condition callout to refresh token. I understand that this is not correct way but I still can't get a clue how to make this call using building Oauth policy. :( It's clear for me oauth process from google side but cant understand where i have store value and how to

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

前提是你 提交于 2019-12-05 22:48:14
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' is the name of the developer's custom attribute: AccessEntity policy- <?xml version="1.0" encoding=

Apigee Usergrid: Mass delete option missing

橙三吉。 提交于 2019-12-05 00:51:43
问题 I am using usergrid to store data for a customer project. It's got two collections carShowrooms and cars. So far I am good. But I have a scenario where I have refresh the masterdata of the collection cars. Everytime I do this, I have to delete all the existing data in cars and replace it with incoming cars data from the master inventory system. Now, with the docu in https://www.npmjs.org/package/usergrid, I see that I can only destroy one car at a time. car.destroy(function(err){ if (err){ /

swagger tools error handler middleware not catching errors

霸气de小男生 提交于 2019-12-04 18:59:17
问题 overview My custom errorHandler middleware is not catching the swagger-tools request validator error. Instead, the swagger tools HTML error is sent back to the client. How can I get my errorHandler middleware to catch the swagger tools validation error and respond to the client accordingly? my prognosis I'm rather clueless unfortunately. No matter where I put the app.use(errorHandler) directive, the swagger tools html error is returned to the client and my errorHandler function never catches

Cannot login to Apache Usergrid deployed on Tomcat7

只愿长相守 提交于 2019-12-04 15:13:28
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 requested by "http://localhost:8080" . The site says: "Usergrid Authentication". ]. I try to login with the

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

帅比萌擦擦* 提交于 2019-12-04 03:43:17
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 origin of the JWT token (the server which signed the JWT token, in this case, I believe that is

Apigee Usergrid: Mass delete option missing

 ̄綄美尐妖づ 提交于 2019-12-03 20:16:10
I am using usergrid to store data for a customer project. It's got two collections carShowrooms and cars. So far I am good. But I have a scenario where I have refresh the masterdata of the collection cars. Everytime I do this, I have to delete all the existing data in cars and replace it with incoming cars data from the master inventory system. Now, with the docu in https://www.npmjs.org/package/usergrid , I see that I can only destroy one car at a time. car.destroy(function(err){ if (err){ //error - car not deleted //winston log - tbd } else { //success - car deleted } }); This is ok for