Class: Lapis::Yggdrasil::Messaging::ValidateRequest
- Inherits:
-
TokenRequest
- Object
- Request
- TokenRequest
- Lapis::Yggdrasil::Messaging::ValidateRequest
- Defined in:
- lib/lapis/yggdrasil/messaging/validate_request.rb
Overview
Request for checking if a session is still valid.
Instance Method Summary collapse
-
#endpoint ⇒ String
Path on the server that handles the request.
-
#initialize(client_token, access_token) ⇒ ValidateRequest
constructor
Creates a new validate request.
-
#to_json ⇒ String
Generates a JSON string that can be sent to an authentication server.
Constructor Details
#initialize(client_token, access_token) ⇒ ValidateRequest
Creates a new validate request.
14 15 16 |
# File 'lib/lapis/yggdrasil/messaging/validate_request.rb', line 14 def initialize(client_token, access_token) super(client_token, access_token) end |
Instance Method Details
#endpoint ⇒ String
Path on the server that handles the request.
20 21 22 |
# File 'lib/lapis/yggdrasil/messaging/validate_request.rb', line 20 def endpoint '/validate' end |
#to_json ⇒ String
Generates a JSON string that can be sent to an authentication server.
26 27 28 |
# File 'lib/lapis/yggdrasil/messaging/validate_request.rb', line 26 def to_json structure.to_json end |