Class: Lighthouse::VeteransHealth::JwtWrapper
- Inherits:
-
Object
- Object
- Lighthouse::VeteransHealth::JwtWrapper
- Defined in:
- lib/lighthouse/veterans_health/jwt_wrapper.rb
Instance Method Summary collapse
Instance Method Details
#payload ⇒ Object
5 6 7 8 9 10 11 12 |
# File 'lib/lighthouse/veterans_health/jwt_wrapper.rb', line 5 def payload { iss: Settings.lighthouse.veterans_health.fast_tracker.client_id, sub: Settings.lighthouse.veterans_health.fast_tracker.client_id, aud: Settings.lighthouse.veterans_health.fast_tracker.aud_claim_url, exp: 15.minutes.from_now.to_i } end |
#token ⇒ Object
14 15 16 |
# File 'lib/lighthouse/veterans_health/jwt_wrapper.rb', line 14 def token @token ||= JWT.encode(payload, Configuration.instance.rsa_key, 'RS256') end |