Issue with Authorization code grant type github example

Not applicable

I am trying to deploy the Authorization code grant type sample (3 legged Auth), while registering a new user on the login app, i get the following error.

I am aware of the bug as mentioned in the example, have used the password as suggested , still get the error above.

"Note that there's a bug (#42) where certain passwords cause the registration to fail (throw a stacktrace error). For example, a password like 566559aa throws an error, while apigee123 does not. Until further notice, when trying out this sample, try using apigee123 as your password if see an error like this when you click the "Register" button."

Any ideas on what is the problem. Any help is appreciated.

Thanks

TypeError: org.mozilla.javascript.Undefined@0 is not a function, it is undefined.
    at /organization/environment/api/routes/registration.js:117:0
    at /organization/environment/api/routes/registration.js:24:0
    at handle (/organization/environment/api/node_modules/express/lib/router/layer.js:95:0)
    at next (/organization/environment/api/node_modules/express/lib/router/route.js:137:0)
    at dispatch (/organization/environment/api/node_modules/express/lib/router/route.js:112:0)
    at handle (/organization/environment/api/node_modules/express/lib/router/layer.js:95:0)
    at /organization/environment/api/node_modules/express/lib/router/index.js:281:0
    at process_params (/organization/environment/api/node_modules/express/lib/router/index.js:335:0)
    at next (/organization/environment/api/node_modules/express/lib/router/index.js:275:0)
    at /organization/environment/api/node_modules/body-parser/lib/read.js:130:0
    at invokeCallback (/organization/environment/api/node_modules/raw-body/index.js:224:0)
    at done (/organization/environment/api/node_modules/raw-body/index.js:213:0)
    at onEnd (/organization/environment/api/node_modules/raw-body/index.js:273:0)
    at emit (events.js:92:0)
    at _stream_readable.js:943:0
    at _tickDomainCallback (trireme.js:491:0)
    at _tickFromSpinner (trireme.js:422:0)
0 5 287
5 REPLIES 5

You said, "The sample" but you didn't specify which sample.

My bad, here it goes 3 legged sample proxy

Here's an authorization code example, that I just tested. It works.

Hey Dino,

I tried your example, i am getting the following error while trying to deploy the proxy:

Invalid cache resource reference cache1 in Step definition CL-GetAuthzSession. Context Revision:1;APIProxy:oAuth2-ac;Organization:xxx;Environment:test

Any suggestions.

Thanks

Bhupesh

yes. you need to create the cache called "cache1"

Sorry! I thought that was noted in the README.

I've updated the README to state that more clearly. And I've also added a tool that allows you to provision all the assets, automatically.