Discourse SSO and owncloud as file storage

A problem that comes up with Discourse from time to time is people who want to be able to upload large files. Discourse isn’t great at being a file repository. I was thinking that it would be cool if it were possible to use Disocurse’s native SSO provider as the SSO master for OwnCloud. It would then be pretty easy to use them together, and a plugin that made uploads go to owncloud rather than the native local store might not be too hard.