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

[v4.0.0.rc2] No route for new_oauth_application_path #821

Closed
sanchobouillant opened this issue Apr 20, 2016 · 5 comments
Closed

[v4.0.0.rc2] No route for new_oauth_application_path #821

sanchobouillant opened this issue Apr 20, 2016 · 5 comments

Comments

@sanchobouillant
Copy link

Hello,

I'm not a rails gutu ! :)

I test rails 5 (--api --edge). I wat to use Doorkeeper to handle my oauth server.

When i go to http://localhost:3000/oauth/applications i receive "undefined local variable or method `new_oauth_application_path'"

routes

I added in application.rb
config.middleware.use ActionDispatch::Flash
Routes.rb:

Rails.application.routes.draw do
    use_doorkeeper
end

error

@tute
Copy link
Contributor

tute commented Apr 20, 2016

I would expect that the --api mode for Rails interferes with the new HTML endpoint. Does this still happen if in config/application.rb you declare config.api_only = false?

@sanchobouillant
Copy link
Author

It work with api_only = false

@tute
Copy link
Contributor

tute commented Apr 20, 2016

doorkeeper admin interface is HTML, and needs features absent in Rails API mode.

@tute tute closed this as completed Apr 21, 2016
@mmahalwy
Copy link

@tute any solution or work around for this whe doing api_only = true?

@tute
Copy link
Contributor

tute commented Apr 26, 2016

You'd need to check what modules need to be included in the Doorkeeper controllers, and include them by hand only on that admin interface. Not sure which those are, I would try to debug that or ask in StackOverflow in case someone there has already done this.

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

No branches or pull requests

3 participants