We run a web app with a sort of end-to-end cryptography system, where everything is encrypted with keys derived from the user password. We know that this is not ideal however, it seems like the best solution we currently have.
Recently a request for SSO implementation also came. From this it seems that implementing SSO and also E2EE, without the need for a desktop or mobile app is possible, but that is the only mention I found.
Is there a way of getting some secret from the SSO provider that is unique for each user and is secure to use for encryption of user data? Or is this just generally not a good idea at all?
I went through AWS Cognito and Auth0 docs but didn't find anything useful. Currently, we have some implementation underway in AWS Cognito, but don't mind switching to another provider.