Authenticate: given a user-provided authentication secret (such as "login:password"), either return user's record (ID, time when the secret expires, etc), or issue a challenge to continue the authentication process to the next step, or return an error code. The remoteAddr (i.e. the IP address of the
(secret []byte, remoteAddr string)
| 252 | // store.Users.GetAuthRecord("scheme", "unique") |
| 253 | // Returns: user auth record, challenge, error. |
| 254 | Authenticate(secret []byte, remoteAddr string) (*Rec, []byte, error) |
| 255 | |
| 256 | // AsTag converts search token into prefixed tag or an empty string if it |
| 257 | // cannot be represented as a prefixed tag. |
no outgoing calls