I need to read values of some GET parameters in /var/lib/one/remotes/auth/<my_custom_auth_driver>/authenticate script. How to do it?
It will require some development from your part.
A few hints to get you started:
Doc for the existing sunstone authentication options
The session is built in this file:
Off the top of my head, I see two options:
-
Perform the authentication completely in sunstone, with
:auth: sunstone
in the conf and modifying SunstoneCloudAuth.rb
https://github.com/OpenNebula/one/blob/master/src/cloud/common/CloudAuth/SunstoneCloudAuth.rb#L17 -
Include those extra parameters somehow in the the ‘secret’ argument of the driver. Something like
Base64.encode64(param1 + ":" + param2 + ":" + param3)
, and then decode that inside the authentication driver.
Regards