Commit Graph

  • 43b8c52d34 Merge remote-tracking branch 'ewf/ewf_v1' into ewf_v1 Jocelyn Fiat 2015-07-16 17:18:58 +02:00
  • d8ac46f8b0 Added CMS_NODE.is_published and is_trashed: BOOLEAN For now, whenever we save a node, it is marked as published. Display a node only if published. Updated /trash page. Updated /nodes/ page to take into account the node status. Jocelyn Fiat 2015-07-16 17:16:35 +02:00
  • 91f1a87b83 Added HTML5 validations. Add required to input title. Added pattern to path alias with the following regex ^([A-Za-z0-9-_+ ]).+ jvelilla 2015-07-16 11:38:38 -03:00
  • 769c14caf8 Display the OAuth association only in "account" page. Improved the template to show only when pertinent. Jocelyn Fiat 2015-07-16 15:49:14 +02:00
  • 3c0122d98f Fixed validation of node path alias field, for node creation. Now,when installation a module, store the version (instead of just "yes") Jocelyn Fiat 2015-07-16 15:23:56 +02:00
  • 77487e90f3 Added account block to link and unlink with Oauth Updated CMS_OAUTH_20_MODULE, to handle account_info, block jvelilla 2015-07-15 13:22:19 -03:00
  • 5d498c0bf2 Merge branch 'ewf_v1' of https://github.com/EiffelWebFramework/ROC into ewf_v1 jvelilla 2015-07-15 12:25:34 -03:00
  • e42a7636ae Updated Account Info Add Link and Unlink account with OAuth. jvelilla 2015-07-15 12:24:56 -03:00
  • f55a52e4d0 Added CMS_USER_API.save_user_role (a_user_role) Jocelyn Fiat 2015-07-14 19:52:39 +02:00
  • 2040a746dd Cleaned auth module by removing useless code. Added CMS_USER_API.user_role_by_name (a_name: READABLE_STRING_GENERAL): detachable CMS_USER_ROLE Added enabled/disabled status in admin/install. Jocelyn Fiat 2015-07-14 18:59:09 +02:00
  • d4fc9f9411 Updated account info, using a to link users to login form. Removed unneeded file. jvelilla 2015-07-14 13:08:43 -03:00
  • bba504df53 Updated Account info: If user is not logged in, show a login option. Updated New Password Added option to request a new password using username. Updated templates to use {$site_url} jvelilla 2015-07-14 10:58:16 -03:00
  • 5688cffcf1 Fixed wrong error report for path alias validation. Jocelyn Fiat 2015-07-14 12:47:59 +02:00
  • 19e8607e54 Removed unused local variable Use new location for http_authorization library. Added error_handler in CMS_MODULE_API (and thus all modules). Better error handling in CMS_USER_API. Jocelyn Fiat 2015-07-14 12:20:43 +02:00
  • 2d77bf6de8 Fixed change_password block template. Jocelyn Fiat 2015-07-13 18:48:06 +02:00
  • 2d985ba05e Merge remote-tracking branch 'jvelilla/roc_account' into ewf_v1 Jocelyn Fiat 2015-07-13 18:43:07 +02:00
  • 1b0cc9dc07 Moved initialization from CMS_DEFAULT_SETUP to CMS_SETUP.initialize. Rely on setup "admin.installation_access" to determine who has access to /admin/install . Jocelyn Fiat 2015-07-13 18:42:16 +02:00
  • 0164c6ec6d Updated Account Info based on review. Updated Account info with change password form. jvelilla 2015-07-13 10:25:18 -03:00
  • 2fe2a7f864 Merge branch 'ewf_v1' of https://github.com/EiffelWebFramework/ROC into roc_account jvelilla 2015-07-13 08:54:50 -03:00
  • 3dec559d58 Process modules installation only for /admin/install request. This makes installation process safer, and controlled. Jocelyn Fiat 2015-07-11 15:39:59 +02:00
  • dce3f71be9 Added account info, shows basic user info, logout based on login strategy. Clean block_login. jvelilla 2015-07-10 15:41:39 -03:00
  • 3ea9e36e7c Updated comments. Jocelyn Fiat 2015-07-10 19:08:29 +02:00
  • 5da01fd576 Fixed issue with CMS_USER_STORAGE_SQL_I.update_user which was passing useless parameters. Jocelyn Fiat 2015-07-10 18:57:56 +02:00
  • 7f4a7b3ab9 Implemented Module enable/disable setting from configuration. Implemented dependencies checking to set CMS_MODULE.is_enabled. Implemented the persistence of CMS_USER.roles Jocelyn Fiat 2015-07-10 18:46:16 +02:00
  • 779064a505 In SQL statement use the same case for table names, i.e all lowercase. Otherwise on Linux+MySQL queries may fail. Jocelyn Fiat 2015-07-10 12:58:05 +02:00
  • 5477bab83c Added error handler argument in CMS_STORAGE_BUILDER.storage (...) function. Removed testing purpose code. Update debug module. Jocelyn Fiat 2015-07-10 12:20:28 +02:00
  • d24f124e42 Fixed typo in renamed features. Jocelyn Fiat 2015-07-09 21:31:09 +02:00
  • bace9657b4 Search module configuration first in site/config/modules/$module_name/ folder to see if default is overriden, and then in site/modules/$module_name/config/ folder. Jocelyn Fiat 2015-07-09 21:29:35 +02:00
  • 6319d46f26 Added back CMS_FORMATS.filtered_html Jocelyn Fiat 2015-07-09 13:47:22 +02:00
  • 31095b1b66 Merged formats, from CMS_NODE_API and CMS_API, into CMS_API.formats: CMS_FORMATS. Jocelyn Fiat 2015-07-09 13:41:42 +02:00
  • 16cae0047d Revisited the format, filter and content type integration. Now, all formats used by CMS are instances of CMS_FORMAT, mainly to prepare the admin section in order to define format by config/database. CMS_NODE_API provides all queries to access the content types, and formats, this way a module can easily alter the formats by adding a new filter. Jocelyn Fiat 2015-07-09 12:23:20 +02:00
  • 85cff0b139 Better implementation of CMS_API.source_of_path_alias (a_alias). That now returns the path, only if the alias exists, otherwise returns Void. Improved path alias validation. Jocelyn Fiat 2015-07-07 17:40:12 +02:00
  • cc94c59eed Added CMS_USER.utf_8_name: STRING_8 for convenience. Added a permission check for registering (TODO: by default allow visitor to register). Cosmetic. Jocelyn Fiat 2015-07-07 17:25:56 +02:00
  • 4c8af3ef66 Fixed implementation of path alias settings. Now report an error if path is already aliased to another location. Jocelyn Fiat 2015-07-07 17:20:25 +02:00
  • 37729f648a Merge remote-tracking branch 'ewf/ewf_v1' into ewf_v1 Jocelyn Fiat 2015-07-03 19:35:43 +02:00
  • 26dc018893 Added CMS_API.new_email (..): CMS_EMAIL to help CMS_EMAIL creation. Jocelyn Fiat 2015-07-03 19:32:49 +02:00
  • f0eff2cb98 Updated basic_auth issue with Javascript. jvelilla 2015-07-03 09:28:19 -03:00
  • 011a6b7804 Updated auto register hook with new {CMS_HOOK_RESPONSE_ALTER} Jocelyn Fiat 2015-07-03 09:37:40 +02:00
  • 83e7f95425 Fixed location of .ecf file related to ROC CMS. Jocelyn Fiat 2015-07-03 09:33:41 +02:00
  • 4f7acc5dbd Updated Javascript roc_basic_auth jvelilla 2015-07-02 17:19:14 -03:00
  • 922fca80ad Merge branch 'jvelilla-roc_v1_option1' into ewf_v1 jvelilla 2015-07-02 15:10:17 -03:00
  • 9d465b3d7e Updated basic auth module, rename classes to use the prefix CMS_ Updated code based on comments jvelilla 2015-07-02 14:49:33 -03:00
  • 5288fe4d3c Move generic code for activation, password, reset password, re-activation to auth module. Updated Basic Auth module to handle specific content. jvelilla 2015-07-02 12:56:10 -03:00
  • 9722347736 Fixed issue with roc_auth.js jvelilla 2015-07-02 10:49:58 -03:00
  • a2598fff92 Updated clean CMS_AUTHENTICATION_MODULE Updated basic_auth module to handle templates All the auth modules depends on CMS_AUTHENTICATION_MODULE Send mail is done using features from CMS_AUTHENTICATION_MODULE. Update redirect in roc_auth.js after success login to home. jvelilla 2015-07-02 10:29:42 -03:00
  • 42e7763528 Added url routing for /files/... and /module/{modname}/files/... Added CMS_HOOK_RESPONSE_ALTER to give a last chance to alter the response before rendering. This hook should not be used, when there are other alternative hook that answer the need, but this is proposed for now, as a way to alter response by adding css, js url, ... Moved blog under official modules folder. Cleaned theme of demo example project. Renamed NODE_MODULE as CMS_NODE_MODULE. Jocelyn Fiat 2015-07-01 22:50:19 +02:00
  • 02fe3ba829 Merge branch 'jvelilla-roc_v1_mailer' into ewf_v1 jvelilla 2015-06-30 19:28:08 -03:00
  • fe3274e29a Remove unnecessary features from email service parameters for OAuth and OpenID s jvelilla 2015-06-30 19:09:39 -03:00
  • 96bae9f8fb Fixed typos jvelilla 2015-06-30 18:52:44 -03:00
  • 1cef32a1fb Updated callback url jvelilla 2015-06-30 18:11:56 -03:00
  • f1e8e1da58 Updated code based on review jvelilla 2015-06-30 18:06:25 -03:00
  • 26276dad5d Added OpenId Module. Better way to present handle authentication strategies in the view using tabs. jvelilla 2015-06-30 16:54:09 -03:00
  • eb9ac980e6 Added integration configuration file all-safe.ecf Fixed various compilation error Jocelyn Fiat 2015-06-30 18:18:01 +02:00
  • 28ab4786a1 Provided a CMS_EMAIL, and CMS_API.process_email (CMS_EMAIL) BEFORE_REST_API_EXPERIMENTAL_REMOVAL_06_2015 Jocelyn Fiat 2015-06-30 16:11:49 +02:00
  • 8294a47f17 Added usage of notification_email library. Added CMS_SETUP.mailer Updated implementation of email_service to use notification_email library Jocelyn Fiat 2015-06-30 15:53:02 +02:00
  • e45dac84c8 Removing unused local variables. Fixed .ecf location for cms related libraries. Jocelyn Fiat 2015-06-29 18:42:11 +02:00
  • bb3e3b992f Merge branch 'ewf_v1_roctool' into ewf_v1 Jocelyn Fiat 2015-06-29 17:30:39 +02:00
  • ebc5924c01 Made CMS_MODULE.name deferred, and implemented by constant so that it can be use as static call. Copied site resources on related module source folder. Renamed "login" module as "auth" module, and updated related locations and files. Jocelyn Fiat 2015-06-29 16:24:17 +02:00
  • 48b0ad5195 Merge remote-tracking branch 'jvelilla/roc_tool' into ewf_v1_roctool Jocelyn Fiat 2015-06-26 11:25:12 +02:00
  • ae9eea99dd Integrate Authentication modules. Updated code for sql that should not use parameters to expand :table_name in table name usage, since Eiffel Store will use quote, and MySQL does not like them. Jocelyn Fiat 2015-06-25 23:20:51 +02:00
  • 268f53e53f Fixed UUID for Oauth20 module. jvelilla 2015-06-25 15:22:31 -03:00
  • e17fc570a1 Updated Demo with the new OAuth20 module Added basic example to extend CMS Authentication using Smarty templates. jvelilla 2015-06-25 13:20:04 -03:00
  • ba7ef17d34 Adapted to new layout, with module files inside site/modules/$module_name/... Jocelyn Fiat 2015-06-25 17:55:09 +02:00
  • c8bbac664b Initial commit, added new module oauth20. jvelilla 2015-06-25 10:07:06 -03:00
  • 04e98dbb48 Merge remote-tracking branch 'ewf/ewf_v1' into ewf_v1 Jocelyn Fiat 2015-06-24 18:51:33 +02:00
  • 2886c90782 Moved all location related queries into CMS_API, instead of CMS_SETUP. Note that CMS_SETUP provides locations set by default or from configuration file. Now theme related resources can be found under site/modules/$mod_name/... or site/themes/$theme/modules/... so only theme related resources can be overriden for now. Jocelyn Fiat 2015-06-24 17:15:05 +02:00
  • db6799d55b Merge branch 'jvelilla-roc_ewf_v1_email' into ewf_v1 jvelilla 2015-06-24 11:21:52 -03:00
  • 7c0032ada4 Updated CMS: Extract email service as a library. Updated modules to use the email library. Fixed compilation issue with database_connection_null.e jvelilla 2015-06-24 11:17:17 -03:00
  • fa5efede2c Merge branch 'jocelyn-roc_auth_20150619' into ewf_v1 jvelilla 2015-06-23 15:30:01 -03:00
  • 0fca03a4d1 Improved Authentication module code. Updated to match recent changes from cypress the OAuth Eiffel library. roc_auth_20150619 Jocelyn Fiat 2015-06-22 21:47:06 +02:00
  • 642b901856 Make sure CMS_BLOCK knows about page variables values. For now only for smarty template blocks. Jocelyn Fiat 2015-06-19 22:48:20 +02:00
  • 4f3bcf290f Fixing issue with index. Jocelyn Fiat 2015-06-19 17:58:09 +02:00
  • 6ca8a9ce82 Fixed parts of SQL statements handling (mostly for SQL script execution). Jocelyn Fiat 2015-06-19 17:42:02 +02:00
  • 2c72fe6738 Renamed login module as auth (authentication) module Jocelyn Fiat 2015-06-19 11:48:42 +02:00
  • 149de898c0 Updated location for cypress the OAuth Eiffel lib. prepare login module renaming to auth module. Jocelyn Fiat 2015-06-19 11:44:41 +02:00
  • c3133c65a1 Merge remote-tracking branch 'jvelilla/roc_email' into ewf_v1 ewf_v1_auth_mod Jocelyn Fiat 2015-06-18 19:17:16 +02:00
  • 9e51df1e01 Updated OAUTH consumer using STRING_8 instead of STRING_32 jvelilla 2015-06-18 12:35:56 -03:00
  • 967871e427 Removed inheritance from obsolete classes. Jocelyn Fiat 2015-06-18 14:46:22 +02:00
  • 73e0098c4d Removed persistence sqlite folder which is now obsolete. Jocelyn Fiat 2015-06-18 14:23:30 +02:00
  • b4407378db Fixing compilations for test suites related to persistency. Jocelyn Fiat 2015-06-18 14:07:41 +02:00
  • f619727997 Fixed persistency layer. Now we have ODBC .. that accepts various connection string (including SQLite, MySQL,...) And EiffelStore+MySQL. Updated sql scripts to work with MySQL, and SQLite. Added a sql_statement (s: STRING): STRING that converts ROC sql statement to fit the underlying database engine. mostly to adapt incompatibilities such as AUTO_INCREMENT for MySQL and AUTOINCREMENT for SQLite by default SQL script should be written following MySQL SQL syntax. Warning: to use ODBC persistence driver, it has to be installed on the target machine. Jocelyn Fiat 2015-06-18 13:55:05 +02:00
  • a94a8857ae Initial Import ROC tool jvelilla 2015-06-17 20:45:28 -03:00
  • e37dbb0a62 Merge branch 'blog_ewf_v1' into ewf_v1 Jocelyn Fiat 2015-06-16 21:07:40 +02:00
  • 53491274dc Merged CMS based on concurrent EWF (i.e ewf_v1) with blog branch. blog_ewf_v1 Jocelyn Fiat 2015-06-15 11:27:44 +02:00
  • afced59b0c Updated Login Module. - Refactor raname classes and features. - Clean code. jvelilla 2015-06-11 21:50:27 -03:00
  • 21800e71d3 Removed obsolete calls. Updated code to make it clear what is the resource, and what is the associated module resource path. Jocelyn Fiat 2015-06-11 23:03:34 +02:00
  • 18732a9532 Updated Login Module. - OAUTH LOGIN: is generic based on a new OAUTH_20_GENERIC_API - Storage (at the moment only SQL) for OAUTH_CONSUMER configuration. - OAUTH login and callback are generic. - Added a OAUTH_20_GENERIC_API. - Added scripts and templates to build the new OAUTH tables. - Fixed CMS_STORAGE_SQL_I.check_sql_query_validity issue. - Extended CMS_STORAGE_SQL_I, to execute scripts with paramerters. - Updated filter, now it's generic for every OAUTH consumer. jvelilla 2015-06-11 10:01:36 -03:00
  • 0fc1cb68ad Apply recent changes from EWF v1 Jocelyn Fiat 2015-06-10 18:39:41 +02:00
  • 0b8bee3404 favor EiffelThread for now, while waiting for SCOOP to be fully ready. Jocelyn Fiat 2015-06-10 11:06:58 +02:00
  • 53a602d33c Removed CMS_SERVICE Updated install.bat script Jocelyn Fiat 2015-06-10 09:43:04 +02:00
  • f652aa8a15 Update Login Module. - Updated routes relative to /account/ - Updated emails with template support. - Updated cookie to support the new route. - Updated smarty block templates to use the new path. jvelilla 2015-06-09 19:44:52 -03:00
  • 5578a9e622 Adapted ROC CMS to concurrent EWF. Revisited the shared logger to reduced number of useless calls. Jocelyn Fiat 2015-06-09 19:42:37 +02:00
  • e188625c43 Update Login Module. - Added an API to mange user OAuth authentication. - Updated the Filter to use the new API. - Updated the Module to initialize if it needed the storages needed by the login module. - Updated gmail callback to use the new API. - Added a Persistence Layer jvelilla 2015-06-08 18:32:34 -03:00
  • 96ba3c35a2 OAuth2 Gmail Added OAuth2 GMAIL loggin/logout support. Added OAuth2 Gmail filter. LoginModule Updated LoginModule with OAuth2 Gmail support. Persitence Extended user persitance api with OAuth2 gmail features. (TODO refactor persistance as an user extention) jvelilla 2015-06-08 12:58:33 -03:00
  • 181c32a895 Update: refactor get_block_view. jvelilla 2015-06-05 19:12:10 -03:00
  • 032cc5bdcb Updated CMS with Login Module. -- The module handle basic_auth (at the moment). -- Handle login, logout, register user, activate/reactivate an account, password recovery. -- Send notification emails. jvelilla 2015-06-05 18:39:27 -03:00
  • b8cfff487a Removed dependency from pagination to cms_data_query_parameters TODO: review and fix any NATURAL_64 truncation. pagination Jocelyn Fiat 2015-06-02 15:56:27 +02:00
  • af8f410684 Updated the CMS pagination component. Harmonized count type to NATURAL_64 for recent_nodes (more to do later). Fix get is active code. Jocelyn Fiat 2015-06-02 15:39:08 +02:00
  • cede341301 Merged remote-tracking branch 'jvelilla/roc_pg' into pagination Renamed pagination related classes, and moved them to cms library under "support" cluster. Jocelyn Fiat 2015-05-31 22:43:19 +02:00
  • 70d53b3ef1 Provide a default CMS_MODULE.is_installed: BOOLEAN implementation based on storage of custom value. Now use CMS_MODULE.is_initialized: BOOLEAN as precondition of many routines. Instantiation of node storage is now done in NODE_MODULE and not any more in CMS_NODE_API. CMS_NODE_API can be instantiated only by NODE_MODULE. Jocelyn Fiat 2015-05-29 19:20:31 +02:00