baptistegh opened a new pull request, #77568:
URL: https://github.com/apache/airflow/pull/77568

   When Keycloak cannot answer an authorization request, the Keycloak auth 
manager raised a bare `AirflowException`. Callers could not tell a Keycloak 
authorization failure from any other Airflow error, or an invalid request from 
an unexpected Keycloak response, without matching on the message.
   
   This adds three exceptions in 
`airflow.providers.keycloak.auth_manager.exceptions`:
   
   - `KeycloakAuthorizationError`: the base class, raised when Keycloak cannot 
answer an authorization request.
   - `KeycloakAuthorizationRequestError`: Keycloak rejects the request as 
invalid (an unrecognized 400, such as `invalid_scope`).
   - `KeycloakUnexpectedResponseError`: Keycloak answers with an unexpected 
HTTP status.
   
   The base class subclasses `AirflowException`, so code that catches 
`AirflowException` keeps working. The error messages are unchanged.


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