mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-18 04:26:01 +00:00
inner activator
This commit is contained in:
@@ -23,6 +23,8 @@ function unauthorizedResponse(req, res, text) {
|
||||
function authMiddleware(req, res, next) {
|
||||
const SKIP_AUTH_PATHS = ['/config/get', '/auth/oauth-token', '/auth/login', '/stream'];
|
||||
|
||||
// console.log('********************* getAuthProvider()', getAuthProvider());
|
||||
|
||||
if (!getAuthProvider().shouldAuthorizeApi()) {
|
||||
return next();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user