baptistegh commented on code in PR #77443:
URL: https://github.com/apache/airflow/pull/77443#discussion_r4669436764


##########
providers/keycloak/src/airflow/providers/keycloak/auth_manager/services/token.py:
##########
@@ -310,6 +316,60 @@ def create_token_from_authorization_code(
         return _create_api_jwt_from_keycloak_tokens(client, tokens, 
expiration_time_in_seconds)
 
 
+def _require_cli_device_code_enabled() -> None:
+    if not is_cli_device_code_enabled():
+        raise HTTPException(
+            status_code=status.HTTP_400_BAD_REQUEST,
+            detail="Device code login is not enabled for command-line clients",
+        )
+
+
+def find_oauth_error(error: KeycloakError) -> str | None:

Review Comment:
   Done.



-- 
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