Currently if the auth-proxy relation data is still accessible on relation-departed event, the forward-auth relation will not updated and the requests to a related charm will still be passed through proxy, receiving 401 response.
This PR fixes it by removing the auth proxy's provider data before calling forward_auth.update_forward_auth_config.
Currently if the
auth-proxy
relation data is still accessible on relation-departed event, theforward-auth
relation will not updated and the requests to a related charm will still be passed through proxy, receiving 401 response.This PR fixes it by removing the auth proxy's provider data before calling
forward_auth.update_forward_auth_config
.