Doorkeeper: breaking api change in versions greater than v4.2.6

Created on 13 Sep 2018  路  6Comments  路  Source: doorkeeper-gem/doorkeeper

The Issue

There is a breaking api change in versions greater than v4.2.6. This is in the native redirect uri authorization code flow. Up until then the code response route, after resource owner authentication, was /oauth/authorize/<code> . Now the response is oauth/authorize/native?code=<code>. This breaks the native oauth flows for clients that previously parsed the response from /oauth/authorize/<code>. This is what has kept us from upgrading doorkeeper. But now that we have to upgrade to 4.4.2 to get the backport for the implicit token revocation fix https://github.com/doorkeeper-gem/doorkeeper/pull/1120, this has become a more pressing issue. It would be nice to have a initializer option that either lets us opt out of the breaking api change that exists in the minor version bump from v4.2.6 - v4.4.2 or add the option to customize this route. I would be happy to put in a PR for either option if they seem reasonable.

Expected behavior

In a minor version bump I would not expect a breaking api change, I would expect the authorization code response for a native auth code flow to be: /oauth/authorize/<code>.

Actual behavior

The response is oauth/authorize/native?code=<code>.

bug

All 6 comments

Hi @pakwfoley . Yes, you are absolutely right. This change was made to help applications that automatically authorizes (take a look at original PR). I think we need to revert this for 4.x release, but save it for 5.x with notice in upgrade guides and changelog.

@nbulaj Thank you for the quick response! The only concern I have for reverting would be for those applications who have already bumped past 4.2.6 and asked clients to move over to the new api. I know it鈥檚 not easy to ask clients to move to a new api, and it鈥檚 especially not easy to ask them to revert after changing. Would it be unreasonable to add an option to opt out of the api change in the 4.x release, and remove that option for 5.x?

@pakwfoley I think you are right. It would be great if you can send a PR with such an option

Released with 4.4.3 @pakwfoley

Hi @pakwfoley . Can we close this issue ?

Released with 4.4.3

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ulitiy picture ulitiy  路  5Comments

jwoudenberg picture jwoudenberg  路  5Comments

edwinv picture edwinv  路  6Comments

rasheedhamdawi picture rasheedhamdawi  路  4Comments

f3ndot picture f3ndot  路  6Comments