feat: Implement API endpoint to show saml auth provider

This commit is contained in:
Faruk AYDIN
2024-02-19 23:41:37 +01:00
parent 9e98aebeb3
commit eb15bd01ca
4 changed files with 82 additions and 0 deletions

View File

@@ -3,6 +3,7 @@ import { authenticateUser } from '../../../helpers/authentication.js';
import { authorizeAdmin } from '../../../helpers/authorization.js';
import { checkIsEnterprise } from '../../../helpers/check-is-enterprise.js';
import getSamlAuthProvidersAction from '../../../controllers/api/v1/admin/saml-auth-providers/get-saml-auth-providers.ee.js';
import getSamlAuthProviderAction from '../../../controllers/api/v1/admin/saml-auth-providers/get-saml-auth-provider.ee.js';
const router = Router();
@@ -14,4 +15,12 @@ router.get(
getSamlAuthProvidersAction
);
router.get(
'/:samlAuthProviderId',
authenticateUser,
authorizeAdmin,
checkIsEnterprise,
getSamlAuthProviderAction
);
export default router;