Class: SignIn::RefreshTokenDecryptor
- Inherits:
-
Object
- Object
- SignIn::RefreshTokenDecryptor
- Defined in:
- app/services/sign_in/refresh_token_decryptor.rb
Instance Attribute Summary collapse
-
#encrypted_refresh_token ⇒ Object
readonly
Returns the value of attribute encrypted_refresh_token.
Instance Method Summary collapse
-
#initialize(encrypted_refresh_token:) ⇒ RefreshTokenDecryptor
constructor
A new instance of RefreshTokenDecryptor.
- #perform ⇒ Object
Constructor Details
#initialize(encrypted_refresh_token:) ⇒ RefreshTokenDecryptor
Returns a new instance of RefreshTokenDecryptor.
7 8 9 |
# File 'app/services/sign_in/refresh_token_decryptor.rb', line 7 def initialize(encrypted_refresh_token:) @encrypted_refresh_token = encrypted_refresh_token end |
Instance Attribute Details
#encrypted_refresh_token ⇒ Object (readonly)
Returns the value of attribute encrypted_refresh_token.
5 6 7 |
# File 'app/services/sign_in/refresh_token_decryptor.rb', line 5 def encrypted_refresh_token @encrypted_refresh_token end |
Instance Method Details
#perform ⇒ Object
11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
# File 'app/services/sign_in/refresh_token_decryptor.rb', line 11 def perform decrypted_component = get_decrypted_component validate_token!(decrypted_component) RefreshToken.new( session_handle: decrypted_component.session_handle, uuid: decrypted_component.uuid, user_uuid: decrypted_component.user_uuid, parent_refresh_token_hash: decrypted_component.parent_refresh_token_hash, anti_csrf_token: decrypted_component.anti_csrf_token, nonce: decrypted_component.nonce, version: decrypted_component.version ) end |