Module: Oa2c
- Defined in:
- lib/oa2c.rb,
lib/oa2c/engine.rb,
lib/oa2c/version.rb,
lib/oa2c/middleware.rb,
app/models/oa2c/user.rb,
app/models/oa2c/client.rb,
lib/oa2c/authentication.rb,
app/models/oa2c/access_token.rb,
app/models/oa2c/oauth2_token.rb,
app/models/oa2c/refresh_token.rb,
app/models/oa2c/authorization_code.rb,
app/controllers/oa2c/authorizations_controller.rb
Defined Under Namespace
Modules: Authentication, OAuth2Token, User Classes: AccessToken, AuthorizationCode, AuthorizationsController, Client, Engine, Middleware, RefreshToken
Constant Summary collapse
- VERSION =
"0.1.1"
- @@user_model =
"User"
- @@authentication_method =
:authenticate_user!
- @@login_method =
:sign_in
- @@current_user_method =
:current_user
- @@find_user_for_password_authentication =
proc {|username, password| user = Oa2c.user_model.constantize.where(email: username).first user if user.valid_password? password }
- @@auto_approve =
false
- @@layout =
false
Class Method Summary collapse
Class Method Details
.setup {|_self| ... } ⇒ Object
33 34 35 |
# File 'lib/oa2c.rb', line 33 def self.setup yield self end |