# File lib/oauth/controllers/provider_controller.rb, line 55
      def authorize
        if params[:oauth_token]
          @token = ::RequestToken.find_by_token! params[:oauth_token]
          oauth1_authorize
        else
          if request.post?
            @authorizer = OAuth::Provider::Authorizer.new current_user, user_authorizes_token?, params
            redirect_to @authorizer.redirect_uri
          else
            @client_application = ClientApplication.find_by_key! params[:client_id]
            render :action => "oauth2_authorize"
          end
        end
      end