Include exception info when something goes wrong while refreshing tokens

```
An error occurred when refreshing user token: (invalid_request) Missing Code
```

is the message we're currently logging, that's not enough to do anything
with.
This commit is contained in:
mvdbeek
2024-04-17 14:58:32 +02:00
parent 3c2db48ae6
commit 6da24f2f2f
+2 -3
View File
@@ -340,9 +340,8 @@ class AuthnzManager:
if refreshed:
log.debug(f"Refreshed user token via `{auth.provider}` identity provider")
return True
except Exception as e:
msg = f"An error occurred when refreshing user token: {e}"
log.error(msg)
except Exception:
log.exception("An error occurred when refreshing user token")
return False
def refresh_expiring_oidc_tokens(self, trans, user=None):