Maybe I missed them, but I don’t see there being any docs on auth provider development. I’d like to see providers for OAuth2 or OpenID Connect - is there a way I can do this or will it depend on patching upstream?
Hi,
The interface to develop a new auth driver is here:
http://docs.opennebula.org/5.4/integration/infrastructure_integration/devel-auth.html
basically you get the username, passowrd (as provided by the user) and secret (the password stored in the DB). Within the driver you may access additional information by calling oneuser show if needed…
As a base sample, you can take a look to ssh auth for example:
-
The base driver call, authenticate
-
The library that makes the work, basiscally decripts the token using the ssh key
It would be great if you work on those, let’s know if you need more help
Thanks Ruben, I had missed that part of the docs. I’ll have a look at the links you suggested!