-- -- acs-kernel/sql/oracle/authentication-create.sql -- -- The OpenACS core authentication system. -- -- @author Lars Pind (lars@collaboraid.biz) -- -- @creation-date 20003-05-13 -- -- @cvs-id $Id: authentication-create.sql,v 1.1 2003/08/22 11:38:08 peterm Exp $ -- create table auth_authorities ( authority_id integer constraint auth_authorities_pk primary key constraint auth_authorities_aid_fk references acs_objects(object_id) on delete cascade, short_name varchar2(255) constraint auth_authority_short_name_un unique, pretty_name varchar2(4000), help_contact_text varchar2(4000), enabled_p char(1) default 't' constraint auth_authority_enabled_p_nn not null constraint auth_authority_enabled_p_ck check (enabled_p in ('t','f')), sort_order integer not null, -- Id of the authentication service contract implementation auth_impl_id integer constraint auth_authority_auth_impl_fk references acs_sc_impls(impl_id), -- Id of the password management service contact implementation pwd_impl_id integer constraint auth_authority_pwd_impl_fk references acs_sc_impls(impl_id), forgotten_pwd_url varchar2(4000), change_pwd_url varchar2(4000), -- Id of the registration service contract implementation register_impl_id integer constraint auth_authority_reg_impl_fk references acs_sc_impls(impl_id), register_url varchar2(4000) ); comment on column auth_authorities.help_contact_text is ' Contact information (phone, email, etc.) to be displayed as a last resort when people are having problems with an authority. '; comment on column auth_authorities.forgotten_pwd_url is ' Any username in this url must be on the syntax foo={username} and {username} will be replaced with the real username '; comment on column auth_authorities.change_pwd_url is ' Any username in this url must be on the syntax foo={username} and {username} will be replaced with the real username '; -- Define the acs object type begin acs_object_type.create_type ( object_type => 'authority', pretty_name => 'Authority', pretty_plural => 'Authorities', supertype => 'acs_object', table_name => 'auth_authorities', id_column => 'authority_id', package_name => null, abstract_p => 'f', type_extension_table => null, name_method => null ); end; / show errors -- Create PLSQL package @@ authentication-package-create -- Create the local authority declare v_authority_id integer; begin v_authority_id := authority.new( short_name => 'local', pretty_name => 'OpenACS Local', sort_order => '1' ); end; / show errors