forked from lyokato/goidc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
auth_session.go
52 lines (41 loc) · 890 Bytes
/
auth_session.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
package test_helper
type (
TestAuthSession struct {
authId int64
redirectUri string
authTime int64
code string
expiresIn int64
codeVerifier string
nonce string
Enabled bool
}
)
func (s *TestAuthSession) GetAuthId() int64 {
return s.authId
}
func (s *TestAuthSession) GetAuthTime() int64 {
return s.authTime
}
func (s *TestAuthSession) GetCreatedAt() int64 {
// FIXME
return s.authTime
}
func (s *TestAuthSession) GetIdTokenExpiresIn() int64 {
return int64(60 * 60 * 24 * 7)
}
func (s *TestAuthSession) GetCode() string {
return s.code
}
func (s *TestAuthSession) GetExpiresIn() int64 {
return s.expiresIn
}
func (s *TestAuthSession) GetCodeVerifier() string {
return s.codeVerifier
}
func (s *TestAuthSession) GetRedirectURI() string {
return s.redirectUri
}
func (s *TestAuthSession) GetNonce() string {
return s.nonce
}