File: sign_request.rb

package info (click to toggle)
ruby-u2f 0.2.1-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 164 kB
  • sloc: ruby: 727; makefile: 12
file content (16 lines) | stat: -rw-r--r-- 317 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
module U2F
  class SignRequest
    include RequestBase
    attr_accessor :key_handle

    def initialize(key_handle, challenge, app_id)
      @key_handle = key_handle
      @challenge = challenge
      @app_id = app_id
    end

    def as_json(options = {})
      super.merge(keyHandle: key_handle)
    end
  end
end