-
Notifications
You must be signed in to change notification settings - Fork 27
/
interaction.go
75 lines (44 loc) · 2.18 KB
/
interaction.go
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
package webapp
import (
"github.com/authgear/authgear-server/pkg/lib/interaction/nodes"
)
type inputTriggerOOB struct {
AuthenticatorIndex int
AuthenticatorType string
}
var _ nodes.InputAuthenticationOOBTrigger = &inputTriggerOOB{}
func (i *inputTriggerOOB) GetOOBAuthenticatorIndex() int { return i.AuthenticatorIndex }
func (i *inputTriggerOOB) GetOOBAuthenticatorType() string { return i.AuthenticatorType }
type inputTriggerWhatsapp struct {
AuthenticatorIndex int
}
var _ nodes.InputAuthenticationWhatsappTrigger = &inputTriggerWhatsapp{}
func (i *inputTriggerWhatsapp) GetWhatsappAuthenticatorIndex() int { return i.AuthenticatorIndex }
type inputTriggerLoginLink struct {
AuthenticatorIndex int
}
var _ nodes.InputAuthenticationLoginLinkTrigger = &inputTriggerLoginLink{}
func (i *inputTriggerLoginLink) GetLoginLinkAuthenticatorIndex() int { return i.AuthenticatorIndex }
type inputSelectTOTP struct{}
var _ nodes.InputCreateAuthenticatorTOTPSetup = &inputSelectTOTP{}
func (i *inputSelectTOTP) SetupTOTP() {}
type inputAuthDeviceToken struct {
DeviceToken string
}
var _ nodes.InputUseDeviceToken = &inputAuthDeviceToken{}
func (i *inputAuthDeviceToken) GetDeviceToken() string { return i.DeviceToken }
type inputSelectWhatsappOTP struct{}
func (i *inputSelectWhatsappOTP) SetupPrimaryAuthenticatorWhatsappOTP() {}
var _ nodes.InputCreateAuthenticatorWhatsappOTPSetupSelect = &inputSelectWhatsappOTP{}
type inputSelectOOB struct{}
func (i *inputSelectOOB) SetupPrimaryAuthenticatorOOB() {}
var _ nodes.InputCreateAuthenticatorOOBSetupSelect = &inputSelectOOB{}
type inputSelectLoginLinkOTP struct{}
func (i *inputSelectLoginLinkOTP) SetupPrimaryAuthenticatorLoginLinkOTP() {}
var _ nodes.InputCreateAuthenticatorLoginLinkOTPSetupSelect = &inputSelectLoginLinkOTP{}
type inputSelectVerifyIdentityViaOOBOTP struct{}
func (i *inputSelectVerifyIdentityViaOOBOTP) SelectVerifyIdentityViaOOBOTP() {}
var _ nodes.InputVerifyIdentity = &inputSelectVerifyIdentityViaOOBOTP{}
type inputSelectVerifyIdentityViaWhatsapp struct{}
func (i *inputSelectVerifyIdentityViaWhatsapp) SelectVerifyIdentityViaWhatsapp() {}
var _ nodes.InputVerifyIdentityViaWhatsapp = &inputSelectVerifyIdentityViaWhatsapp{}