Class: Ros::Jwt
- Inherits:
-
Object
- Object
- Ros::Jwt
- Defined in:
- lib/ros/core.rb
Class Method Summary collapse
Class Method Details
.decode(payload) ⇒ Object
27 28 29 |
# File 'lib/ros/core.rb', line 27 def self.decode(payload) JWT.decode(payload, Settings.credentials.jwt_encryption_key, Settings.jwt.alg) end |
.encode(payload) ⇒ Object
22 23 24 25 |
# File 'lib/ros/core.rb', line 22 def self.encode(payload) # TODO: This is called twice by IAM on basic auth JWT.encode(payload, Settings.credentials.jwt_encryption_key, Settings.jwt.alg) end |