Module: Devise::Models::KillbillAuthenticatable
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/devise/models/killbill_authenticatable.rb
Defined Under Namespace
Modules: ClassMethods
Instance Method Summary collapse
Instance Method Details
#after_killbill_authentication ⇒ Object
21 22 23 |
# File 'lib/devise/models/killbill_authenticatable.rb', line 21 def after_killbill_authentication save(validate: false) end |
#valid_killbill_password?(creds) ⇒ Boolean
10 11 12 13 14 15 16 17 18 19 |
# File 'lib/devise/models/killbill_authenticatable.rb', line 10 def valid_killbill_password?(creds) # Simply try to look-up the permissions for that user - this will # Take care of the auth part response = Kaui::User.(creds) # Auth was successful, update the session id self.kb_session_id = response.session_id true rescue KillBillClient::API::Unauthorized => _e false end |