components/app: warn when username is missing for OAuth introspection
Makes things easier to debug.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user