Module: Vidibus::Oauth2Server::Extensions::Controller
- Defined in:
- lib/vidibus/oauth2_server/extensions/controller.rb
Overview
Contains core modifications of rails controller methods.
Instance Method Summary collapse
-
#authenticate_user! ⇒ Object
Authenticates user.
-
#find_user_by_uuid(uuid) ⇒ Object
Returns user with matching uuid.
-
#oauth2_client(id) ⇒ Object
Returns Oauth2 client application matching given id.
Instance Method Details
#authenticate_user! ⇒ Object
Authenticates user.
9 10 11 |
# File 'lib/vidibus/oauth2_server/extensions/controller.rb', line 9 def authenticate_user! raise 'Add a method #authenticate_user! to your ApplicationController that authenticates the user.' end |
#find_user_by_uuid(uuid) ⇒ Object
Returns user with matching uuid.
14 15 16 |
# File 'lib/vidibus/oauth2_server/extensions/controller.rb', line 14 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 |
#oauth2_client(id) ⇒ Object
Returns Oauth2 client application matching given id.
19 20 21 |
# File 'lib/vidibus/oauth2_server/extensions/controller.rb', line 19 def oauth2_client(id) raise 'Add a method #oauth2_client to your ApplicationController that returns the OAuth client application for given id.' end |