feat: Implement saml auth providers API endpoint

This commit is contained in:
Faruk AYDIN
2024-03-14 10:26:26 +01:00
parent b1e2e370c8
commit 68c5a3dca7
12 changed files with 139 additions and 22 deletions

View File

@@ -0,0 +1,12 @@
import { renderObject } from '../../../../helpers/renderer.js';
import SamlAuthProvider from '../../../../models/saml-auth-provider.ee.js';
export default async (request, response) => {
const samlAuthProviders = await SamlAuthProvider.query()
.where({
active: true,
})
.orderBy('created_at', 'desc');
renderObject(response, samlAuthProviders);
};