Skip to content

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 #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

@hanxue hanxue closed this by deleting the head repository Jun 17, 2025
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