Keycloak HTTP Request
AI-generatedSummary
Requests an access token from a Keycloak server using username/password credentials or initiates a full OIDC login flow to retrieve application session cookies.
Inputs
- method (required) — HTTP method to use for the initial token request (GET or POST). Defaults to POST.
- url (required) — The Keycloak token endpoint URL (e.g., the OpenID Connect token endpoint).
- options — Additional request options including 'fullResponse' (returns headers/status), 'followRedirects', 'ignoreSSL', and 'neverError'.
- options.appLoginUrl — Required when 'fetchSessionCookie' is enabled. The application login page URL used to start the OIDC flow.
- options.fetchSessionCookie — When true, performs a full browser login flow against the app using the retrieved access token and returns the final response with session cookies.
Output shape
Either a JSON object containing the token (access_token, etc.) or a JSON object with statusCode, headers, and body.
If 'fetchSessionCookie' is enabled, the output includes the final application response details. Requires a 'keycloakPasswordApi' credential containing username, password, client_id, and optionally client_secret.
Examples
Example 1: Simple password grant
POST to the token endpoint; returns the raw token JSON.
Example 2: OIDC login with session cookie
Enable 'Fetch Session Cookie' and provide 'App Login URL'; executes redirects to obtain session cookies.
Example 3: Full response data
Enable 'Include Response Headers and Status' to return statusCode and headers alongside the body.