Goodreads Developers discussion
questions
>
oauth return as additional query parameters?
date
newest »


index.php?register/goodreads
As such, the proper return URL for such a set up would be:
index.php?register/goodreads&oauth_token=x&access=1
However, the application seems to hard code it as its own query string returning this to me:
index.php?register/goodreads?oauth_token=x&access=1
I currently have a hack in my application so I can pull out the oauth_token and continue with the flow since it is associated with another query parameter.

Although, so does having a parameter without the "="
I'll file a ticket about this, but it sounds like your hack is currently working?

The actually landing Url puts it into the "assoc" query parameter (necessary for my app), so it looks like this:
index.php?register/goodreads&assoc=1?oauth_token=x&access=1
My hack is beyond hacky:
$parts = explode('=', $query['assoc']);
$oauth_token = array_pop($parts);
Having query parameters without = is perfectly fine and used in several instances that I can think of. XenForo manages to route these to appropriately "named" parameters in the code.

https://www.goodreads.com/topic/show/...
Is there a way to accomplish this? Or do I need to be fairly hacky with my integration to get it to have access to the query parameters I need (oauth_token doesn't exist on the return to my site since it is assoc=1?oauth_token=x versus assoc=1&oauth_token=x)?