InfoValidateCredentialsExplicitTs requires user to confirm credentials before going forward with explicit server and incoming request timestamps (300).
(id string, serverTs, incomingReqTs time.Time)
| 1052 | // InfoValidateCredentialsExplicitTs requires user to confirm credentials before going forward |
| 1053 | // with explicit server and incoming request timestamps (300). |
| 1054 | func InfoValidateCredentialsExplicitTs(id string, serverTs, incomingReqTs time.Time) *ServerComMessage { |
| 1055 | return &ServerComMessage{ |
| 1056 | Ctrl: &MsgServerCtrl{ |
| 1057 | Id: id, |
| 1058 | Code: http.StatusMultipleChoices, // 300 |
| 1059 | Text: "validate credentials", |
| 1060 | Timestamp: serverTs, |
| 1061 | }, |
| 1062 | Id: id, |
| 1063 | Timestamp: incomingReqTs, |
| 1064 | } |
| 1065 | } |
| 1066 | |
| 1067 | // InfoChallenge requires user to respond to presented challenge before login can be completed (300). |
| 1068 | func InfoChallenge(id string, ts time.Time, challenge []byte) *ServerComMessage { |
no outgoing calls
no test coverage detected
searching dependent graphs…