Skip to content

Commit 1091c8f

Browse files
committed
chore: add warning message that websocketTopicAuth is not provided
AdminForth/1830/ws-authorization-work
1 parent fcea422 commit 1091c8f

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

adminforth/modules/configValidator.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1219,6 +1219,7 @@ export default class ConfigValidator implements IConfigValidator {
12191219

12201220
if (!newConfig.auth.websocketTopicAuth) {
12211221
newConfig.auth.websocketTopicAuth = async (topic: string, adminUser: AdminUser) => {
1222+
afLogger.warn('websocketTopicAuth is not provided. Public access to websocket topics (except /opentopic) is blocked.');
12221223
if (!adminUser) {
12231224
// don't allow anonymous users to subscribe
12241225
return false;

0 commit comments

Comments
 (0)