mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-22 04:10:01 +00:00
feat(core): Improve SAML connection test (#5680)
* improve saml test * cleanup * remove unused SamlConfiguration types
This commit is contained in:
committed by
GitHub
parent
1bdeb6684a
commit
ef07528cc2
@@ -21,3 +21,11 @@ export const samlLicensedAndEnabledMiddleware: RequestHandler = (req, res, next)
|
||||
res.status(401).json({ status: 'error', message: 'Unauthorized' });
|
||||
}
|
||||
};
|
||||
|
||||
export const samlLicensedMiddleware: RequestHandler = (req, res, next) => {
|
||||
if (isSamlLicensed()) {
|
||||
next();
|
||||
} else {
|
||||
res.status(401).json({ status: 'error', message: 'Unauthorized' });
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user