Module: Aserto::IdentityMapper::Sub
- Extended by:
- Base
- Defined in:
- lib/aserto/identity_mapper/sub.rb
Class Method Summary collapse
Methods included from Base
Class Method Details
.execute(request) ⇒ Object
9 10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/aserto/identity_mapper/sub.rb', line 9 def execute(request) config = Aserto.config auth_token = request.get_header("HTTP_AUTHORIZATION") return {} unless auth_token auth_token = auth_token.split.last if auth_token data = extract_data(auth_token) || {} { type: :sub, identity: data[config.identity_mapping[:from].to_s] } end |