Sha256: de83ceb8a8dfed94aae8929e096aecd1166b354f0c89d1eeb2f2bdde90b2eb4e

Contents?: true

Size: 626 Bytes

Versions: 1

Compression:

Stored size: 626 Bytes

Contents

module Vidibus
  module Oauth2Server
    module Extensions

      # Contains core modifications of rails controller methods.
      module Controller

        # Authenticates user.
        def authenticate_user!
          raise "Add a method authenticate_user! to your ApplicationController that authenticates the user that calls the OAuth actions."
        end

        # Returns Oauth2 client application matching given id.
        def oauth2_client(id)
          raise "Add a method oauth2_client to your ApplicationController that returns the OAuth client application for given id."
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
vidibus-oauth2_server-0.0.0 lib/vidibus/oauth2_server/extensions/controller.rb