Module: Aserto::IdentityMapper::Jwt
- Extended by:
- Base
- Defined in:
- lib/aserto/identity_mapper/jwt.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 |
# File 'lib/aserto/identity_mapper/jwt.rb', line 9 def execute(request) config = Aserto.config auth_token = request.get_header( config.identity_mapping[:from] || "HTTP_AUTHORIZATION" ) return {} unless valid?(auth_token) { type: :jwt, identity: auth_token } end |