I'm looking at options to implementing different authentication methods in a SAAS application. The saas application is a single instance that services all tenants.
To allow different authentication methods i could create different owin pipelines per tenants to loop through all tenant configurations on startup. See the answer bottom answer here for an explanation: Change OWIN Auth Middleware Per Request (Multi-tenant, oauth API keys per tenant)
I realise any configuration changes to the pipeline would force me to rebuild it but i found a nice repo that seems to be doing the trick. https://github.com/damianh/DynamicKatanaPipeline
Although the solution of creating different pipelines per tenant is possible i worry about this not scaling very well. I was wondering if it is a good solution and whether anybody knows of pitfalls i'm not seeing with this solution or has any experience with setup.