is there anyway to use Yunohost as an oauth or openid provider, to authenticate in other Applications like Nextcloud with is running on a second server with my Yunohost username/password?
Or is there anyway to connect the ldap of two YunoHost servers?
Hum, maybe you should have a shot at what has been done for the Flarum app, there’s a “Login with Yunohost” installed by a plugin, maybe the plugin code can help you
It could be possible to open ldap port and make some changes to expose ldap and use it. But expose ldap is a risk so you should add correct fail2ban rules and check encryption.
It’s an “advance use case”.
An other way could be to setup an oauth/openid app based on ldap, but i don’t know anyone. So you have to package it
Is SAML 2.0 with the SSO possible?
Nope SSowat doesn’t support SAML.
I’ve solved the problem with Gitlab, with can act as an oauth or openid provider. It works.