Login
Authenticate with username and password, receive a JWT token.
GH-1302: a caller sending X-GeoLens-Auth-Mode: cookie receives the refresh token as an httpOnly cookie and a null refresh_token in the body. Without that header the response is unchanged, which is what keeps the CLI, the generated SDKs, Postman, and CI logins working.
Request
- The document declares no server URL.
- Auth: none declared
Headers
Browser session-transport negotiation. Send cookie to carry the refresh token in an httpOnly geolens_refresh cookie, paired with a script-readable geolens_csrf cookie, and receive a null refresh_token in the response body. When the header is absent (the default) the refresh token is returned in the response body, which is the contract every non-browser caller uses.
Response
Successful Response
Changes
No recorded changes to this operation across all 50 revisions of this API.