Changeset 6062


Ignore:
Timestamp:
02/25/15 21:08:35 (9 years ago)
Author:
olhsha@mpi.nl
Message:

a security-censored copy of the DASISH backend for open-source on github.

Location:
DASISH/t5.6/backend/annotator-backend/tags/git-copy-censored
Files:
2 deleted
5 edited
1 copied

Legend:

Unmodified
Added
Removed
  • DASISH/t5.6/backend/annotator-backend/tags/git-copy-censored/annotator-backend/src/main/sql/principal_non-shibb.sql

    r4995 r6062  
    3737
    3838INSERT INTO  users(username, password) VALUES
    39 ('olhsha@mpi.nl','07bb23ab0eca1757ec95a96312a063bbc69c1c3788f08d23994e371c3bff9bede3583f30e319fedbc96356352ff3bb0045d01ccd45a49f58a21baa52d925c7e2');
    40 INSERT INTO  users(username, password) VALUES ('olasei@mpi.nl','cecc2ce46d93555c4cfb747f1313dce819c934626db2716728c07c4f505a43b470ed988f84397505f9c988bf60e61952260e93bc75b91eb733fcaf9c13845e5d');
     39('alice@mail.domain','someverylonghash...');
     40INSERT INTO  users(username, password) VALUES ('bob@mail.domain','anotherlonghash...');
    4141
    42 INSERT INTO  authorities(username, authority) VALUES ('olhsha@mpi.nl', 'ROLE_USER');
    43 INSERT INTO  authorities(username, authority) VALUES ('olasei@mpi.nl', 'ROLE_USER');
     42INSERT INTO  authorities(username, authority) VALUES ('alice@mail.domain', 'ROLE_USER');
     43INSERT INTO  authorities(username, authority) VALUES ('bob@mail.domain', 'ROLE_USER');
  • DASISH/t5.6/backend/annotator-backend/tags/git-copy-censored/annotator-backend/src/main/webapp/META-INF/context.xml

    r4603 r6062  
    1919
    2020-->
     21<!-- IMPORTANT: Set your username and password attributes below! -->
    2122<Context antiJARLocking="true" path="/annotator-backend">
    2223  <Resource auth="Container"
     
    2425            logAbandoned="true" maxActive="10" maxIdle="5" maxWait="4000"
    2526            name="jdbc/DASISHAnnotator"
    26             password="dasish"
     27            password="password"
    2728            removeAbandoned="false"
    2829            removeAbandonedTimeout="10"
    2930            type="javax.sql.DataSource"
    3031            url="jdbc:postgresql:annotator"
    31             username="dasish"/>
     32            username="username"/>
    3233</Context>
  • DASISH/t5.6/backend/annotator-backend/tags/git-copy-censored/annotator-backend/src/main/webapp/WEB-INF/shhaa.xml

    r5892 r6062  
    3838                <username>anonymous</username>
    3939            </fallback>
    40             <sso action="lI">https://corpus1.mpi.nl/Shibboleth.sso/Login</sso>
    41             <slo action="lO">https://corpus1.mpi.nl/Shibboleth.sso/Logout</slo>
     40            <sso action="lI">https://yourserver/Shibboleth.sso/Login</sso>
     41            <slo action="lO">https://yourserver/Shibboleth.sso/Logout</slo>
    4242        </authentication>
    4343       
  • DASISH/t5.6/backend/annotator-backend/tags/git-copy-censored/annotator-backend/src/main/webapp/WEB-INF/web.xml

    r5892 r6062  
    4848    <context-param>
    4949        <param-name>eu.dasish.annotation.backend.logout.shibboleth</param-name>
    50         <param-value>https://corpus1.mpi.nl/Shibboleth.sso/Logout</param-value>
     50        <param-value>https://yourserver/Shibboleth.sso/Logout</param-value>
    5151    </context-param>
    5252   
     
    8686    </servlet-mapping>
    8787   
    88     <!--   <security-constraint>
    89         <display-name>Protected backend localhost</display-name>
    90         <web-resource-collection>
    91             <web-resource-name> Protected backend rest service</web-resource-name>
    92             <description />
    93             <url-pattern>/*</url-pattern>
    94             <http-method>GET</http-method>
    95             <http-method>DELETE</http-method>
    96             <http-method>PUT</http-method>
    97             <http-method>POST</http-method>
    98         </web-resource-collection>
    99         <auth-constraint>
    100             <role-name>tomcat</role-name>
    101         </auth-constraint>
    102     </security-constraint>
    103     <login-config>
    104         <auth-method>BASIC</auth-method>
    105     </login-config>
    106     <security-role>
    107         <description> The role that is required to log in to the Application
    108         </description>
    109         <role-name>tomcat</role-name>
    110     </security-role> -->
    111    
     88    <!-- ATTENTION: uncomment spring security filter and comment shibboleth filter if you want to use spring security -->
    11289    <!-- Spring security -->
    11390<!--      <filter>
  • DASISH/t5.6/backend/annotator-backend/tags/git-copy-censored/annotator-backend/src/test/resources/test-data/InsertTestData.sql

    r5850 r6062  
    2727INSERT INTO access(access_mode) VALUES ('all');
    2828
    29 INSERT INTO principal (principal_name, external_id, remote_id, e_mail, account) VALUES ('Twan', '00000000-0000-0000-0000-000000000111', 'twagoo@mpi.nl', 'Twan.Goosen@mpi.nl', 'developer'); --1
    30 INSERT INTO principal (principal_name, external_id, remote_id, e_mail, account) VALUES ('Peter', '00000000-0000-0000-0000-000000000112', 'petwit@mpi.nl', 'Peter.Withers@mpi.nl', 'developer'); -- 2
    31 INSERT INTO principal (principal_name, external_id, remote_id, e_mail, account) VALUES ('Olha', '00000000-0000-0000-0000-000000000113', 'olhsha@mpi.nl', 'Olha.Shakaravska@mpi.nl', 'admin'); -- 3
    32 INSERT INTO principal (principal_name, external_id, remote_id, e_mail, account) VALUES ('Eric', '00000000-0000-0000-0000-000000000114', 'ericaprincipal@mpi.nl', 'Eric.Auer@mpi.nl', 'developer'); -- 4
    33 INSERT INTO principal (principal_name, external_id, remote_id, e_mail, account) VALUES ('Daan', '00000000-0000-0000-0000-000000000115', 'broeder@mpi.ml', 'Daan.Broeder@mpi.nl', 'developer'); --5
    34 INSERT INTO principal (principal_name, external_id, remote_id, e_mail, account) VALUES ('Menzo', '00000000-0000-0000-0000-000000000116', 'menwin@mpi.nl', 'Menzo.Windhouwer@mpi.nl', 'developer'); -- 6
    35 INSERT INTO principal (principal_name, external_id, remote_id, e_mail, account) VALUES ('Przemek', '00000000-0000-0000-0000-000000000117', 'przlen@mpi,nl', 'Przemek.Lenkiewicz@mpi.nl', 'principal'); -- 7
    36 INSERT INTO principal (principal_name, external_id, remote_id, e_mail, account) VALUES ('Stephanie', '00000000-0000-0000-0000-000000000118', 'gusrotst@gu.se', 'stephanie.roth@gu.se', 'developer'); -- 8
    37 INSERT INTO principal (principal_name, external_id, remote_id, e_mail, account) VALUES ('Olof', '00000000-0000-0000-0000-000000000119', 'gusolsol@gu.se', 'olof.olsson.2@gu.se', 'developer'); -- 9
    38 INSERT INTO principal (principal_name, external_id, remote_id, e_mail, account) VALUES ('Willem', '00000000-0000-0000-0000-000000000220', 'wilelb@mpi.nl', 'Willem.Elbers@mpi.nl', 'developer'); -- 10
    39 INSERT INTO principal (principal_name, external_id, remote_id, e_mail, account) VALUES ('Olaf', '00000000-0000-0000-0000-000000000221', 'olasei@mpi.nl', 'Olaf.Seibert@mpi.nl', 'developer'); -- 11
     29INSERT INTO principal (principal_name, external_id, remote_id, e_mail, account) VALUES ('Twan', '00000000-0000-0000-0000-000000000111', 'x@mail.domain', 'X.Developer@mail.domain', 'developer'); --1
     30INSERT INTO principal (principal_name, external_id, remote_id, e_mail, account) VALUES ('Peter', '00000000-0000-0000-0000-000000000112', 'y@mail.domain', 'Y.Developer@mail.domain', 'developer'); -- 2
     31INSERT INTO principal (principal_name, external_id, remote_id, e_mail, account) VALUES ('Alice', '00000000-0000-0000-0000-000000000113', 'alice@mmail.domain', 'Alice.X@mail.domain', 'admin'); -- 3
     32INSERT INTO principal (principal_name, external_id, remote_id, e_mail, account) VALUES ('Eric', '00000000-0000-0000-0000-000000000114', 'eric@mail.domain', 'Eric.Y@mail.domain', 'developer'); -- 4
     33INSERT INTO principal (principal_name, external_id, remote_id, e_mail, account) VALUES ('Daan', '00000000-0000-0000-0000-000000000115', 'z@mail.domain', 'Daan.Z@mail.domain', 'developer'); --5
     34INSERT INTO principal (principal_name, external_id, remote_id, e_mail, account) VALUES ('Menzo', '00000000-0000-0000-0000-000000000116', 'u@mail.domain', 'Menzo.U@mail.domain', 'developer'); -- 6
     35INSERT INTO principal (principal_name, external_id, remote_id, e_mail, account) VALUES ('Przemek', '00000000-0000-0000-0000-000000000117', 'w@mail.domain', 'Przemek.W@mail.domain', 'principal'); -- 7
     36INSERT INTO principal (principal_name, external_id, remote_id, e_mail, account) VALUES ('Stephanie', '00000000-0000-0000-0000-000000000118', 's@mail.se', 'Stephanie.s@mail.se', 'developer'); -- 8
     37INSERT INTO principal (principal_name, external_id, remote_id, e_mail, account) VALUES ('Olof', '00000000-0000-0000-0000-000000000119', 'o@mail.se', 'olof.o@mail.se', 'developer'); -- 9
     38INSERT INTO principal (principal_name, external_id, remote_id, e_mail, account) VALUES ('Willem', '00000000-0000-0000-0000-000000000220', 'wil@mail.domain', 'Willem.Wil@mail.domain', 'developer'); -- 10
     39INSERT INTO principal (principal_name, external_id, remote_id, e_mail, account) VALUES ('Bob', '00000000-0000-0000-0000-000000000221', 'bob@mail.domain', 'Bob.Y@mail.domain', 'developer'); -- 11
    4040
    4141
Note: See TracChangeset for help on using the changeset viewer.