How to know if an user is logged in SSO or not ? How to get his credentials to use APIs?

Hi everyone :slight_smile:

For my application, I would like to know if an user is logged in SSO and get his credentials for him to use Groupfolders’ APIs or another apps of Nextcloud.

Is it possible ?

The ICredentials interface doesn’t allow this.

Can I use oc_sessionPassphrase in Cookies to log in one user ? If yes, how ?

I’m not aware of any such API.