You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be nice if SabreDAV would support multiple auth backends simultaneously: Digest for clients that > support it and Basic for others.
The time has come to implement this. We want to refactor the authentication system a little bit to allow for multiple authentication backends.
We're going to simply add the ability to add more than one backend to the Authentication plugin to achieve this. While we're at it, we're also going to modify the authentication backends a bit, so that:
They get access the Request and Response object, instead of making this a global affair.
They return a full principalUri instead of just a username. This is going to solve a bunch of annoyances in custom implementations that have alternative principal structures.
We need to split up 'validating auth' and 'require authentication' into 2 separate steps.
The text was updated successfully, but these errors were encountered:
From evert...@gmail.com on September 19, 2011 14:12:25:
Makes sense, but it's not very high on my priority list.
I would probably do this by creating an 'aggregate' authentication backend that you can use to specify multiple 'inner backends'.
It would still require some refactoring to make this happen, as every backend needs to go through a 'try to authenticate' and 'handle authentication failed' phase.
From robert.f...@gmail.com on September 19, 2011 15:04:42:
Okay. But I think the Auth_Plugin should just get an additional "addBackend()" method, and the backend from constructor could stay as-is. Should be easier to handle than an aggregate backend - Auth_Plugin would have to care about the different phases anyway.
Let me know if I can help with coding (here or on other features).
From evert...@gmail.com on September 16, 2012 18:56:25:
Changed my mind, sorry.. I think this is (at least for now) too specific to implement in SabreDAV.
The tools are there to implement this as a custom feature, so I don't feel this is important enough.
The time has come to implement this. We want to refactor the authentication system a little bit to allow for multiple authentication backends.
We're going to simply add the ability to add more than one backend to the Authentication plugin to achieve this. While we're at it, we're also going to modify the authentication backends a bit, so that:
Request
andResponse
object, instead of making this a global affair.The text was updated successfully, but these errors were encountered: