Method: JunglePath::API::Helpers::AuthLocalUser#authenticate_assumed_identity
- Defined in:
- lib/jungle_path/api/helpers/auth_local_user.rb
#authenticate_assumed_identity(identity, no_cache = false) ⇒ Object
78 79 80 81 82 83 84 |
# File 'lib/jungle_path/api/helpers/auth_local_user.rb', line 78 def authenticate_assumed_identity identity, no_cache=false id = identity.dup id.user = get_assumed_user(identity.user_name, no_cache) id.key = id.user id.valid = (id.user and id.user.is_valid) id end |