From d9f7faad882a492bef548a000d089aa5255081b0 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Tue, 25 Jun 2024 17:54:48 +0200 Subject: [PATCH] components/app: warn when username is missing for OAuth introspection Makes things easier to debug. --- components/app.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/components/app.js b/components/app.js index c203cc5..60146a5 100644 --- a/components/app.js +++ b/components/app.js @@ -437,6 +437,9 @@ export default class App extends Component { clientSecret: this.config.oauth2.client_secret, }); username = data.username; + if (!username) { + console.warn("Username missing from OAuth 2.0 token introspection response"); + } } catch (err) { console.warn("Failed to introspect OAuth 2.0 token:", err); }