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
The middleware will for each PublicShareController check if the the share requires authentication. And if so if that is properly set in the session. If not redirect to authenticationUrl.
If the authentication function returns false we will request a template response. And set the some parameter.
This is just a very rough brain dump. But it should kind of force some structure for PublicSharePage.
What I still need to think about:
What if you don't have an authentication page? (the files_texteditor public endpoint?) Just a generic 403 would be enough then I think
We could just set the share object when we have it anyway if everything passes?
For each app that wants to provide access to some public page the same logic has to be implemented. This is already duplicated in:
But will be extended if we would add more things. Like editing with the files_texteditor on public links etc.
Now we should not duplicate this code everywhere. For obvious reasons like:
My brain fart of the evening
The middleware will for each PublicShareController check if the the share requires authentication. And if so if that is properly set in the session. If not redirect to authenticationUrl.
If the authentication function returns false we will request a template response. And set the some parameter.
This is just a very rough brain dump. But it should kind of force some structure for PublicSharePage.
What I still need to think about:
@LukasReschke as discussed.
The text was updated successfully, but these errors were encountered: