You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
424 B

  1. class Oauth::ApplicationsController < Doorkeeper::ApplicationsController
  2. before_action :authenticate_user!
  3. def index
  4. @applications = current_user.oauth_applications
  5. end
  6. def create
  7. @application = Doorkeeper::Application.new(application_params)
  8. @application.owner = current_user
  9. if @application.save
  10. redirect_to oauth_application_url(@application)
  11. else
  12. render :new
  13. end
  14. end
  15. end