Commit ff68c732 authored by José Manuel Domínguez's avatar José Manuel Domínguez
Browse files

Do not print OIDC access tokens to the logs

Do not print OIDC tokens to the logs when Custos auth refreshes tokens.
parent 1955d288
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -80,7 +80,6 @@ class CustosAuthnz(IdentityProvider):
        # do not refresh tokens if they didn't reach their half lifetime
        if int(id_token_decoded["iat"]) + int(id_token_decoded["exp"]) > 2 * int(time.time()):
            return False
        log.info(custos_authnz_token.access_token)
        oauth2_session = self._create_oauth2_session()
        token_endpoint = self.config["token_endpoint"]
        if self.config.get("iam_client_secret"):