Module: Bsm::Sso::Client::UserMethods::ClassMethods
- Defined in:
- lib/bsm/sso/client/user_methods.rb
Instance Method Summary collapse
- #sso_authenticate(*args) ⇒ Object
- #sso_authorize(*args) ⇒ Object
- #sso_cache(resource, _action = nil) ⇒ Object
- #sso_consume(*args) ⇒ Object
- #sso_find(id) ⇒ Object
Instance Method Details
#sso_authenticate(*args) ⇒ Object
21 22 23 24 |
# File 'lib/bsm/sso/client/user_methods.rb', line 21 def sso_authenticate(*args) resource = Bsm::Sso::Client::User.sso_authenticate(*args) sso_cache(resource, :authenticate) if resource end |
#sso_authorize(*args) ⇒ Object
26 27 28 29 |
# File 'lib/bsm/sso/client/user_methods.rb', line 26 def (*args) resource = Bsm::Sso::Client::User.(*args) sso_cache(resource, :authorize) if resource end |
#sso_cache(resource, _action = nil) ⇒ Object
31 32 33 |
# File 'lib/bsm/sso/client/user_methods.rb', line 31 def sso_cache(resource, _action=nil) new(resource.attributes) end |
#sso_consume(*args) ⇒ Object
16 17 18 19 |
# File 'lib/bsm/sso/client/user_methods.rb', line 16 def sso_consume(*args) resource = Bsm::Sso::Client::User.sso_consume(*args) sso_cache(resource, :consume) if resource end |