Sha256: 1041278f798a19f8ecac55bbb86d9ff3e4fb8d03a7b2e75db559cd6ccafeeea0

Contents?: true

Size: 808 Bytes

Versions: 5

Compression:

Stored size: 808 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."
        end

        # Returns user with matching uuid.
        def find_user_by_uuid(uuid)
          raise "Add a method #find_user_by_uuid to your ApplicationController to return a user with matching uuid."
        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

5 entries across 5 versions & 1 rubygems

Version Path
vidibus-oauth2_server-0.0.5 lib/vidibus/oauth2_server/extensions/controller.rb
vidibus-oauth2_server-0.0.4 lib/vidibus/oauth2_server/extensions/controller.rb
vidibus-oauth2_server-0.0.3 lib/vidibus/oauth2_server/extensions/controller.rb
vidibus-oauth2_server-0.0.2 lib/vidibus/oauth2_server/extensions/controller.rb
vidibus-oauth2_server-0.0.1 lib/vidibus/oauth2_server/extensions/controller.rb