Class: RailsIam::Authentication::CookieExtractor

Inherits:
RailsIamService show all
Defined in:
app/services/rails_iam/authentication/token_extractor.rb

Instance Method Summary collapse

Methods inherited from RailsIamService

call

Methods included from ConfigLoader

#authentication_strategies, #authorization_rule_error, #cookie_options, #jwt_algorithm, #jwt_audience, #jwt_expiry, #jwt_issuer, #jwt_secret_key, #refresh_token_transport, #session_strategy, #user_class

Constructor Details

#initialize(request) ⇒ CookieExtractor

Returns a new instance of CookieExtractor.



6
7
8
9
# File 'app/services/rails_iam/authentication/token_extractor.rb', line 6

def initialize(request)
  super()
  @request = request
end

Instance Method Details

#callObject



11
12
13
# File 'app/services/rails_iam/authentication/token_extractor.rb', line 11

def call
  request.cookie_jar.encrypted[access_token_key]
end