AuthInfo fills out an authenticated info request to the server, receiving a certificate or error in response. It takes the serialized JSON request to send, remote address and authentication provider.
(req, id []byte, provider auth.Provider)
| 198 | // It takes the serialized JSON request to send, remote address and |
| 199 | // authentication provider. |
| 200 | func (srv *server) AuthInfo(req, id []byte, provider auth.Provider) ([]byte, error) { |
| 201 | return srv.authReq(req, id, provider, "info") |
| 202 | } |
| 203 | |
| 204 | // authReq is the common logic for AuthSign and AuthInfo -- perform the given |
| 205 | // request, and return the resultant certificate. |