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

@@ -0,0 +1,10 @@
import { renderObject } from '../../../../../helpers/renderer.js';
import SamlAuthProvider from '../../../../../models/saml-auth-provider.ee.js';
export default async (request, response) => {
const samlAuthProvider = await SamlAuthProvider.query()
.findById(request.params.samlAuthProviderId)
.throwIfNotFound();
renderObject(response, samlAuthProvider);
};