You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cloudstack.apache.org by Artjoms Petrovs <ar...@telia.lv> on 2015/03/05 10:15:08 UTC

2-level authentication implementation issues

Hello, CS Developers!

I am developing multi-level authentication for CloudStack v4.4.2 and I got in a little confusion. As I can see all the commands can be called only by authenticated users, the only exception goes for "login" and "logout" commands, as it is stated in ApiServlet.

Is there a possibility to hack or extend ApiServlet, so custom login command can be called without authentication, meaning the module will be independent (no changes in cloud-server).


Kind Regards,
Artjoms V. Petrovs


[cid:image001.jpg@01D05734.919A5170]<http://www.telia.lv/>
Artjoms Petrovs
System Analyst / Programmer

Telia Latvija, Ltd. | Lielvardes street 8a, Riga, Latvia, LV-1006
Ph.:   +371 67082144
Mob. +371 27498048
artjoms.petrovs@telia.lv | telia.lv

This email (and any attachements or hyperlinks within it) may contain information that is confidential, legally  privileged or otherwise protected from disclosure.
If you are not the intended recipient of this email, you are not entitled to use, disclose, distribute, copy, print, disseminate or rely on this email in any way. If you have received this email in error, please notify the sender immediately by or email and destroy it, and all copies of it.


RE: 2-level authentication implementation issues

Posted by Artjoms Petrovs <ar...@telia.lv>.
Hello, Rohit!

Thank you for a reply and all the effort in refactoring the code in 4.5.0. Will give it a try!

Kind Regards,
A. 

 

-----Original Message-----
From: Rohit Yadav [mailto:rohit.yadav@shapeblue.com] 
Sent: Friday, March 06, 2015 9:47 AM
To: dev@cloudstack.apache.org
Subject: Re: 2-level authentication implementation issues

Artjoms,

With CloudStack 4.5.0+, you can implement you own authentication plugin,
see:

https://cwiki.apache.org/confluence/display/CLOUDSTACK/Authentication+Refactoring

You may read the default login implementation and saml2 plugin implementation as examples.

On Thursday 05 March 2015 02:45 PM, Artjoms Petrovs wrote:
> Hello, CS Developers!
>
> I am developing multi-level authentication for CloudStack v4.4.2 and I 
> got in a little confusion. As I can see all the commands can be called 
> only by authenticated users, the only exception goes for "login" and 
> "logout" commands, as it is stated in ApiServlet.
>
> Is there a possibility to hack or extend ApiServlet, so custom login 
> command can be called without authentication, meaning the module will 
> be independent (no changes in cloud-server).
>
>
> Kind Regards,
> Artjoms V. Petrovs
>
> <http://www.telia.lv/>
>
> *Artjoms Petrovs
> *System Analyst / Programmer
>
> Telia Latvija, Ltd. | Lielvardes street 8a, Riga, Latvia, LV-1006
> Ph.:   +371 67082144
>
> Mob. +371 27498048
> artjoms.petrovs@telia.lv | telia.lv
>
> This email (and any attachements or hyperlinks within it) may contain 
> information that is confidential, legally  privileged or otherwise 
> protected from disclosure.
> If you are not the intended recipient of this email, you are not 
> entitled to use, disclose, distribute, copy, print, disseminate or 
> rely on this email in any way. If you have received this email in 
> error, please notify the sender immediately by or email and destroy 
> it, and all copies of it.
>

--
Regards,
Rohit Yadav
Software Architect, ShapeBlue
M. +91 8826230892 | rohit.yadav@shapeblue.com
Blog: bhaisaab.org | Twitter: @_bhaisaab PS. If you see any footer below, I did not add it :) Find out more about ShapeBlue and our range of CloudStack related services

IaaS Cloud Design & Build<http://shapeblue.com/iaas-cloud-design-and-build//>
CSForge - rapid IaaS deployment framework<http://shapeblue.com/csforge/>
CloudStack Consulting<http://shapeblue.com/cloudstack-consultancy/>
CloudStack Software Engineering<http://shapeblue.com/cloudstack-software-engineering/>
CloudStack Infrastructure Support<http://shapeblue.com/cloudstack-infrastructure-support/>
CloudStack Bootcamp Training Courses<http://shapeblue.com/cloudstack-training/>

This email and any attachments to it may be confidential and are intended solely for the use of the individual to whom it is addressed. Any views or opinions expressed are solely those of the author and do not necessarily represent those of Shape Blue Ltd or related companies. If you are not the intended recipient of this email, you must neither take any action based upon its contents, nor copy or show it to anyone. Please contact the sender if you believe you have received this email in error. Shape Blue Ltd is a company incorporated in England & Wales. ShapeBlue Services India LLP is a company incorporated in India and is operated under license from Shape Blue Ltd. Shape Blue Brasil Consultoria Ltda is a company incorporated in Brasil and is operated under license from Shape Blue Ltd. ShapeBlue SA Pty Ltd is a company registered by The Republic of South Africa and is traded under license from Shape Blue Ltd. ShapeBlue is a registered trademark.

Re: 2-level authentication implementation issues

Posted by Rohit Yadav <ro...@shapeblue.com>.
Artjoms,

With CloudStack 4.5.0+, you can implement you own authentication plugin,
see:

https://cwiki.apache.org/confluence/display/CLOUDSTACK/Authentication+Refactoring

You may read the default login implementation and saml2 plugin
implementation as examples.

On Thursday 05 March 2015 02:45 PM, Artjoms Petrovs wrote:
> Hello, CS Developers!
>
> I am developing multi-level authentication for CloudStack v4.4.2 and I
> got in a little confusion. As I can see all the commands can be called
> only by authenticated users, the only exception goes for “login” and
> “logout” commands, as it is stated in ApiServlet.
>
> Is there a possibility to hack or extend ApiServlet, so custom login
> command can be called without authentication, meaning the module will be
> independent (no changes in cloud-server).
>
>
> Kind Regards,
> Artjoms V. Petrovs
>
> <http://www.telia.lv/>
>
> *Artjoms Petrovs
> *System Analyst / Programmer
>
> Telia Latvija, Ltd. | Lielvardes street 8a, Riga, Latvia, LV-1006
> Ph.:   +371 67082144
>
> Mob. +371 27498048
> artjoms.petrovs@telia.lv | telia.lv
>
> This email (and any attachements or hyperlinks within it) may contain
> information that is confidential, legally  privileged or otherwise
> protected from disclosure.
> If you are not the intended recipient of this email, you are not
> entitled to use, disclose, distribute, copy, print, disseminate or rely
> on this email in any way. If you have received this email in error,
> please notify the sender immediately by or email and destroy it, and all
> copies of it.
>

--
Regards,
Rohit Yadav
Software Architect, ShapeBlue
M. +91 8826230892 | rohit.yadav@shapeblue.com
Blog: bhaisaab.org | Twitter: @_bhaisaab
PS. If you see any footer below, I did not add it :)
Find out more about ShapeBlue and our range of CloudStack related services

IaaS Cloud Design & Build<http://shapeblue.com/iaas-cloud-design-and-build//>
CSForge – rapid IaaS deployment framework<http://shapeblue.com/csforge/>
CloudStack Consulting<http://shapeblue.com/cloudstack-consultancy/>
CloudStack Software Engineering<http://shapeblue.com/cloudstack-software-engineering/>
CloudStack Infrastructure Support<http://shapeblue.com/cloudstack-infrastructure-support/>
CloudStack Bootcamp Training Courses<http://shapeblue.com/cloudstack-training/>

This email and any attachments to it may be confidential and are intended solely for the use of the individual to whom it is addressed. Any views or opinions expressed are solely those of the author and do not necessarily represent those of Shape Blue Ltd or related companies. If you are not the intended recipient of this email, you must neither take any action based upon its contents, nor copy or show it to anyone. Please contact the sender if you believe you have received this email in error. Shape Blue Ltd is a company incorporated in England & Wales. ShapeBlue Services India LLP is a company incorporated in India and is operated under license from Shape Blue Ltd. Shape Blue Brasil Consultoria Ltda is a company incorporated in Brasil and is operated under license from Shape Blue Ltd. ShapeBlue SA Pty Ltd is a company registered by The Republic of South Africa and is traded under license from Shape Blue Ltd. ShapeBlue is a registered trademark.