Oauth flow without state


#1

Hello Meteorites,

I am trying to develop a new Accounts package using OAuth for Untappd, the awesome app for beer lovers.

The documentation about authentication can be found here: https://untappd.com/api/docs#authentication

I have done a Uber accounts before works great so I thought I would just use a similar code base and change URLs.

But I have encountered issues. I am able to get access token, get the identify of the user, but when I need to save the data in the database I got

20160302-18:41:18.010(1) (oauth_server.js:71) Unable to base64 decode state from OAuth query: undefined W20160302-18:41:18.011(1) (oauth_server.js:71) Unable to base64 decode state from OAuth query: undefined W20160302-18:41:18.012(1) (oauth_server.js:71) Unable to base64 decode state from OAuth query: undefined W20160302-18:41:18.013(1) (oauth_server.js:398) Error in OAuth Server: Match error: Expected string, got undefined

this OAuth flow does not use state param, so I don’t get what’s the issue.

Any clue on this?
thanks


#2

Same problem here. Did you figured it out ?


#3

Nope, did not make any progress.

Which API are you trying to connect?


#4

I’m trying to connect with Eventbrite.


#5

hi, wondering if you solved this?

I am trying to connect to IBM Connections using Oauth the doc states “. IBM Connections Cloud does not support the state parameter, so the application should store the state in the user’s session.”

https://www-10.lotus.com/ldd/appdevwiki.nsf/xpDocViewer.xsp?lookupName=Dev+Guide+topics#action=openDocument&res_title=Understanding_OAuth_2.0&content=sdkcontent&sa=true

@robfallows I have pretty much followed your example http://robfallows.github.io/2015/12/17/writing-an-oauth-2-handler.html and have had it working for ages with Microsoft… now trying to tweak that package to work with IBM Connections.

Update: I seem to be though that issue… the “state” issue was only a warning.

I am now getting a (oauth.js:431) Error in OAuth Server: Match error: Expected string, got undefined not sure what’s missing/mis-typed? Any ideas on how to debug this, please let me know


#6

Had to kinda hack this with “dummy state”.


#7

Hi @fpoirier, were you able to connect to Eventbrite? I’m running into a wall apparently due to a limit on the number of characters allowed in the state parameter. Wondering if you were able to get it working…?