Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bugfix: Update doorkeeper to use before_action #348

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

hanxue
Copy link

@hanxue hanxue commented Apr 9, 2015

Details of bug at #344

The existing code uses doorkeeper_for :all, except: [ :create ]

This will cause the following error

 [1563] - Worker 0 (pid: 1571) booted, phase: 0
12:53:24 worker.1 | `doorkeeper_for` no longer available
12:53:24 worker.1 |
12:53:24 worker.1 | Starting in version 2.0.0 of doorkeeper gem, `doorkeeper_for` is no longer
12:53:24 worker.1 | available. Please change `doorkeeper_for` calls in your application with:
12:53:24 worker.1 |
12:53:24 worker.1 |   before_action :doorkeeper_authorize!
12:53:24 worker.1 |
12:53:24 worker.1 | For more information check the README:
12:53:24 worker.1 | https://github.com/doorkeeper-gem/doorkeeper#protecting-resources-with-oauth-aka-your-api-endpoint
12:53:24 worker.1 |
12:53:24 worker.1 | exited with code 1

Further details here
https://github.com/doorkeeper-gem/doorkeeper#protecting-resources-with-oauth-aka-your-api-endpoint

Details of bug at asm-helpful#344

The existing code uses    `doorkeeper_for :all, except: [ :create ]`

This will cause the following error

```
 [1563] - Worker 0 (pid: 1571) booted, phase: 0
12:53:24 worker.1 | `doorkeeper_for` no longer available
12:53:24 worker.1 |
12:53:24 worker.1 | Starting in version 2.0.0 of doorkeeper gem, `doorkeeper_for` is no longer
12:53:24 worker.1 | available. Please change `doorkeeper_for` calls in your application with:
12:53:24 worker.1 |
12:53:24 worker.1 |   before_action :doorkeeper_authorize!
12:53:24 worker.1 |
12:53:24 worker.1 | For more information check the README:
12:53:24 worker.1 | https://github.com/doorkeeper-gem/doorkeeper#protecting-resources-with-oauth-aka-your-api-endpoint
12:53:24 worker.1 |
12:53:24 worker.1 | exited with code 1
```

Further details here
https://github.com/doorkeeper-gem/doorkeeper#protecting-resources-with-oauth-aka-your-api-endpoint
@bshyong
Copy link
Contributor

bshyong commented Apr 22, 2015

@hanxue can you take a look at the failing test here and see what's causing it to not pass?

@avoidik
Copy link

avoidik commented Feb 16, 2016

before_action :doorkeeper_authorize!, except: :create

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants