# OpenID, OpenID connect

**URL:** <https://forum.opennebula.io/t/openid-openid-connect/2515>\
**Category:** Product Support\
**Created:** [July 7, 2016, 7:46am UTC](https://forum.opennebula.io/t/openid-openid-connect/2515 "2016-07-07T07:46:24Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Juan\_Antonio\_Gonzale](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/juan_antonio_gonzale/32/4336_2.png) [@Juan\_Antonio\_Gonzale](https://forum.opennebula.io/u/Juan_Antonio_Gonzale)\
**Post date:** [July 7, 2016, 7:46am UTC](https://forum.opennebula.io/t/openid-openid-connect/2515/1 "2016-07-07T07:46:24Z")

</div>

Hi everybody!

Is any way to use OpenID/OpenIDConnect to authenticate via Google in the platform?

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![alvaro\_simongarcia](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/alvaro_simongarcia/32/4178_2.png) [@alvaro\_simongarcia](https://forum.opennebula.io/u/alvaro_simongarcia)\
**Post date:** [July 7, 2016, 9:26am UTC](https://forum.opennebula.io/t/openid-openid-connect/2515/2 "2016-07-07T09:26:47Z")

</div>

Hi Juan

The short answer is probably yes 😄 with Sunstone as users frontend. You can use the new Sunstone `remote` authentication method and Apache 2 `mod_auth_openidc`:

[http://docs.opennebula.org/5.0/deployment/sunstone\_setup/sunstone.html](http://docs.opennebula.org/5.0/deployment/sunstone_setup/sunstone.html)

[http://docs.opennebula.org/5.0/deployment/sunstone\_setup/suns\_advance.html?highlight=kerberos#running-sunstone-inside-another-webserver](http://docs.opennebula.org/5.0/deployment/sunstone_setup/suns_advance.html?highlight=kerberos#running-sunstone-inside-another-webserver)

> **[GitHub - OpenIDC/mod\_auth\_openidc: OpenID Certified™ OpenID Connect Relying...](https://github.com/OpenIDC/mod_auth_openidc)**
>
> OpenID Certified™ OpenID Connect Relying Party implementation for Apache HTTP Server 2.x - GitHub - OpenIDC/mod\_auth\_openidc: OpenID Certified™ OpenID Connect Relying Party implementation for Apach...

The basic idea is to execute sunstone inside apache using passenger, is quite similar to the Kerberos or X509 authentication, you can see an example in the documentation. Apache will do the hard work, the web service will check if your openid credentials are valid or not, if so you will get a token and the `REMOTE_USER` will be set.

`REMOTE_USER` variable is used by OpenNebula to give you access to OpenNebula system but the user should be available in the OpenNebula database. It’s similar to `X509` authentication using user certificates, in this case the password should match with the `REMOTE_USER` which should be unique.

In this case you should sync your local users database with the external SSO auth system. I never tried this with openID but we use Kerberos and freeIPA and is working perfectly fine. We have created a script to sync and create/disable our internal OpenNebula users with the external freeIPA SSO.

For openID the `REMOTE_USER` could be something like `mrsoandso@gmail.com` so you have to include this user in ONE using the public driver:

> $ oneuser create mrsoandso “[mrsoandso@gmail.com](mailto:mrsoandso@gmail.com)” --driver public

And that’s it. At least that’s the theory, I never tried openID, I hope that this will help you…

Cheers  
Alvaro
