(ctx context.Context)
| 429 | } |
| 430 | |
| 431 | func (c *Connection) AuthMethod(ctx context.Context) (api.AuthMethodResponse, error) { |
| 432 | req := c.NewRequest(ctx, http.MethodGet, "/auth/method", nil) |
| 433 | var method api.AuthMethodResponse |
| 434 | err := c.doAndUnmarshal(req, &method) |
| 435 | return method, err |
| 436 | } |
| 437 | |
| 438 | func (c *Connection) AuthIdentity(ctx context.Context) (api.AuthIdentityResponse, error) { |
| 439 | req := c.NewRequest(ctx, http.MethodGet, "/auth/identity", nil) |