Open farfade opened 3 years ago
Not sure exactly what you're after, but basically I see two possible approaches:
"admin"
and a role
claim with a set of roles, either user
or administrator
) and signed by a trusted authority (this method assumes the tokens come from the internal auth provider but it could be extended with a system of trusted authorities sourced from configuration).
Note that this alone would not allow you to sign in to your external IdP from the UI - it would only let for instance another app make authorized requests to openHAB with their own tokensSince the internal IdP isn't OIDC compliant due to constraints like mandatory HTTPS that are not the norm for openHAB installations, standards like OIDC Federation 1.0 cannot be implemented easily. However support for OIDC (including the discovery part) as a trusted issuer of assertions in the second scenario could be, provided these constraints are not a problem in your use case.
Wow, I see your ideas are clearer than mine !
Actually my use-case is about single-sign-on :
I eventually ended-up in thinking that OIDC and oauth2 are the most promising techs to do that (with you secondary approach for openhab, and supporting also more elaborated things like authorization delegation, as roles like admin and user started to appear).
Isn‘t this completely against the approach of having a „Intranet of things“ ? openHAB should mainly run without the need of having a working internet connection, but this request creates a dependency on that. I would agree if it is seen in context with myopenHAB remote access, but not for pure local access. Just my 2 cents.
Actually it does not. An identity provider can be self-hosted, just as anything else.
And offering a feature does not mean it is mandatory to use it : as ghys told it, openhab already implements a basic identity provider. The feature would just let guys that want to replace it by another one do it (with a self-hosted one or a "cloud" one).
To me, it is a self-contained identity provider that does not make sense : you cannot reuse the identity stored in it :)
Hello,
I'd like to be able to make openhab3 trust a third-party identity provider instead of only relying on its own internal identity provider.
My feeling is that the hard part of the job has already been done (supporting oauth2 for the REST API).
Regards,
farfade