Giter VIP home page Giter VIP logo

a127-samples's People

Contributors

amuramoto avatar earth2marsh avatar jewest27 avatar mikemalloy avatar prabhatjha avatar sudheergopalam avatar theganyo avatar wwitman avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

a127-samples's Issues

Cannot POST /accesstoken

I've checked out the project as is, the rest of the API is working just fine, but I'm not able to access the oauth2-related URLs.

I'm trying this:

curl -X POST "http://localhost:10010/accesstoken" -d "grant_type=client_credentials&client_id=k6l4TO4DsnQr72LdAIZAxWVZKhXhfM5I&client_secret=tske5wxrUKZsbAbp"

And getting this error:

Cannot POST /accesstoken

It also doesn't work for any other HTTP method.

Error: Cannot find module './secrets'

I'm getting this error on weather-advanced.

Starting: C:\Users\hbarcelos\test\a127-samples\weather-advanced\app.js...
  project started here: http://localhost:10010
  project will restart on changes.
  to restart at any time, enter `rs`

module.js:340
    throw err;
    ^
Error: Cannot find module './secrets'
    at Function.Module._resolveFilename (module.js:338:15)
    at Function.Module._load (module.js:280:25)
    at Module.require (module.js:364:17)
    at require (module.js:380:17)
    at Object.<anonymous> (C:\Users\hbarcelos\test\a127-samples\weather-advanced\config\index.js:26:15)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Module.require (module.js:364:17)

I've tried to run npm install, npm update, npm install secrets on project root, but it didn't fix it.

config is incorrect

Hi Scott,

Great examples! Loving them. For the oauth-password-sample, the config file is missing the field 'id'. hope this helps,
Guy

Error running the security-apikey-apigee sample with an on-premise installation

Hi,

we have an on-premise installation.
First we had problems to start the project locally at all. The solution for that problem was to adjust the config/default.yaml with

 managementUri: "http://our-host:8080"

and config/index.js with

 exports.appRequest = {
   name: 'A127 Sample App',
   environments: ['dev-online' ]
 };

Now the project is able to start but executing the example curl command results in

 $ curl 'http://127.0.0.1:10010/hello?name=Scott&apiKey=n8EkeaA8axNLCAPOOJigV6LZskbmNW5q'
 Error
 at makeError (/home/aabeling/Projects/github/a127-samples/security-apikey-apigee/node_modules/volos-oauth-apigee/node_modules/volos-oauth-common/lib/oauth.js:531:13)
 at /home/aabeling/Projects/github/a127-samples/security-apikey-apigee/node_modules/volos-oauth-apigee/node_modules/volos-oauth-common/lib/oauth.js:492:12
 at /home/aabeling/Projects/github/a127-samples/security-apikey-apigee/node_modules/volos-oauth-apigee/lib/apigeeruntime.js:292:23
 at /home/aabeling/Projects/github/a127-samples/security-apikey-apigee/node_modules/volos-oauth-apigee/lib/apigeeruntime.js:120:11
 at Request.callback (/home/aabeling/Projects/github/a127-samples/security-apikey-apigee/node_modules/volos-oauth-apigee/node_modules/superagent/lib/node/index.js:746:30)
 at ClientRequest.<anonymous> (/home/aabeling/Projects/github/a127-samples/security-apikey-apigee/node_modules/volos-oauth-apigee/node_modules/superagent/lib/node/index.js:711:10)
 at ClientRequest.emit (events.js:95:17)
 at CleartextStream.socketErrorListener (http.js:1547:9)
 at CleartextStream.emit (events.js:95:17)
 at SecurePair.<anonymous> (tls.js:1384:19) 

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.