Sha256: e764ae24b20d121e50caddd080b5722b01af39748b2e2e32b2650845145cf7ba
Contents?: true
Size: 420 Bytes
Versions: 14
Compression:
Stored size: 420 Bytes
Contents
module SwitchUser module Provider class RestfulAuthentication < Base def initialize(controller) @controller = controller end def login(user, scope = nil) @controller.current_user = user end def logout(scope = nil) @controller.logout_killing_session! end def current_user(scope = nil) @controller.current_user end end end end
Version data entries
14 entries across 14 versions & 1 rubygems