1.Use HttpClient to call the authentication endpoint.
2.Parse the response (usually JSON) to extract the token.
3.Optionally store the token for setting in subsequent requests