express - oauth2orize redirect_uri issue -


i'm attempting customize oauth2orize all-grants example use. can run all-grants as-is , works (as expect), when run customized version, end error:

error: unable issue redirect oauth 2.0 transaction @ object.response [as handle] (c:\dev\expy\api\node_modules\oauth2orize\lib\grant\code.js:122:41) 

i've been digging bit , seems there property of txn variable within function should named redirecturi , should populated redirect_uri query string of initial request /dialog/authorize page. reason doesn't happen on example app. caused express version difference? biggest difference see between example code , customizations. all-grants uses express 2.* , app use express 4.*.

if isn't express version issue, should start looking in code issue?

for reference, see in app txn object:

txn: {     "transactionid": "evlud2q4",     "client": { ... },     "req": {         "type": "code",         "clientid": "5c3b4438-433f-11e5-a532-74653c701f13"     },     "user": { ... },     "res": {         "allow": true     } } 

and see in same object example (note presence of redirecturi in req , in txn itself):

txn: {     "transactionid": "eecyp3uj",     "client": { ... },     "redirecturi": "http://localhost:3000/api/userinfo",     "req": {         "type": "code",         "clientid": "abc123",         "redirecturi": "http://localhost:3000/api/userinfo"     },     "user": { ... },     "res": {         "allow": true     } } 


Comments

Popular posts from this blog

dns - How To Use Custom Nameserver On Free Cloudflare? -

python - Pygame screen.blit not working -

c# - Web API response xml language -