baptistegh commented on PR #75672:
URL: https://github.com/apache/airflow/pull/75672#issuecomment-6446744793

   Thanks! Here is a draft PR stacked on this one, showing the Keycloak side 
end to end: #75804
   
   - The Keycloak auth manager advertises `password` and `refresh_token`, plus 
`authorization_code` (S256 only) when `cli_authorization_code_enabled` is on.
   - `airflowctl auth login --sso` reads `/api/v2/auth/cli/metadata`, opens 
`authorization_endpoint`, and swaps the code at `token_endpoint`. It never 
checks which auth manager is running.
   - The device code flow and automatic refresh in airflowctl are left out to 
keep the diff readable. The device flow uses the metadata the same way.
   
   One thing it showed about this PR: with a `base_url` path, endpoints come 
out as `/prefix/auth/...`, so I'll reword the docs here from "relative to the 
API server root URL" to "absolute paths, resolved against the API server URL".


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to