-
Notifications
You must be signed in to change notification settings - Fork 0
/
methods.rb
82 lines (59 loc) · 1.33 KB
/
methods.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
require 'method'
class Pair < Method
post 'pairings/create'
required :pairing_phrase
required :user_name
optional
returns PairingStatus
end
class PairQR < Method
post 'pairings/create/qr'
required :user_name
optional
returns PairingStatus
end
class PairSMS < Method
post 'pairings/create/sms'
required :phone_number
required :user_name
optional :phone_country
end
class GetPairingStatus < Method
get 'pairings/:pairing_id'
returns PairingStatus
end
class Authenticate < Method
post 'authentication_requests/initiate'
required :pairing_id
required :terminal_name
optional :action_name
optional
returns AuthenticationStatus
end
class AuthenticateByUserName < Method
post 'authentication_requests/initiate'
required :user_name
required :name
required :name_extra
optional :action_name
optional
returns AuthenticationStatus
end
class GetAuthenticationStatus < Method
get 'authentication_requests/:authentication_request_id'
end
class AuthenticateWithOTP < Method
post 'authentication_reuqests/:authentication_request_id/otp_auth'
required :otp
end
class CreateUserTerminal < Method
post 'user_terminals/create'
required :user_name
required :name
required :name_extra
end
class SetToopherEnabledForUser < Method
post 'users'
required :user_name
required :enabled
end