This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.

emimarz55226
emimarz55226

Hi there,

I want use protected files but I don't want made my users authenticate via october, I have a cas server and I want use it. is it possible?

regards

JeffGoldblum
JeffGoldblum

See https://github.com/octobercms/october/blob/develop/modules/backend/controllers/Files.php. You should be able to use that as a reference to build out your own custom controller with whatever authentication system you want, and then you just create a model class that extends https://github.com/octobercms/october/blob/develop/modules/system/models/File.php#L35 and override the getThumb() and getPath() methods to return the URL to your custom controller and then use your custom file model as the attachOne / attachMany relationship model.

1-2 of 2

You cannot edit posts or make replies: the forum has moved to talk.octobercms.com.