Login from web sites
It is very easy to add the Cyclos login form on external web sites, for example, with the project web site.
It can be done in some steps:
- Include a script from <cyclos root url>/externalLogin.js in your page. For example: http://www.cyclos.org/cyclos_en/externalLogin.js
- Create an HTML element which will contain the login form iframe. It may be any HTML container tag (table cell, div, paragraph...) with an unique id.
For example, if you have an HTML element identified by 'loginContainer' and want to return to the same url as your site after logout, use: includeCyclosLogin('loginContainer', location.href). When the second argument is omitted, after logging out, the default Cyclos login page is shown.