<div dir="ltr"><div>Hi. In our application we have the concept of public/private resources - all public resources are available to the outside world, while private resources are for authenticated users only. All resources are published using pycsw for now and application uses GetRecords-requests for searching, but we need to hide private resources from unauthorized users. My goal is to provide custom authentication logic for GetRecords and GetRecordById requests. </div><div>My idea is to create subclass of pycsw.ogc.csw.csw2.Csw2 class and override it's corresponding methods. Something like this:</div><div><br></div><div>class MyCsw(Csw2):</div><div>    def getrecords(self):</div><div>        some_authentication_logic()</div><div>        ...</div><div><br></div><div>But in the docs I have not found ways to use custom class as CSW-implementation. Are there ways to solve my problem, or is my idea obviously bad?</div><div><br></div><div>Thanks for your great work!</div><div><br></div><div><br></div><div>Igor Chernikov</div><div><br></div></div>