Loading README.md +0 −1 Original line number Original line Diff line number Diff line Loading @@ -61,7 +61,6 @@ Configure security: | **OIDC_CLIENT** | client-id of a Relying party | | **OIDC_CLIENT** | client-id of a Relying party | | **OIDC_SECRET** | secret of of the client | | **OIDC_SECRET** | secret of of the client | | **AUTHZ_DB_URL** | DB where a table with authorization info ('groups' column) can be found | | **AUTHZ_DB_URL** | DB where a table with authorization info ('groups' column) can be found | | **AUTHZ_DB_SCHEMA** | schema of the authorization table | | **AUTHZ_DB_USERNAME** | user in the DB with authorization table | | **AUTHZ_DB_USERNAME** | user in the DB with authorization table | | **AUTHZ_DB_PASSWORD** | password for the DB-user | | **AUTHZ_DB_PASSWORD** | password for the DB-user | Loading data-access/servlet/src/main/java/auth/authz/webapi/AuthZSettings.java +1 −4 Original line number Original line Diff line number Diff line Loading @@ -14,17 +14,15 @@ class AuthZSettings public static class DBConn public static class DBConn { { private String uri; private String uri; private String schema; private String user_name; private String user_name; private String password; private String password; public String toString() public String toString() { { return uri() + " [" + schema + "] " + user_name + " / " + password + " "; return uri() + " " + user_name; } } public String uri() { return uri; } public String uri() { return uri; } public String schema() { return schema; } public String userName() { return user_name; } public String userName() { return user_name; } public String password() { return password; } public String password() { return password; } } } Loading Loading @@ -78,7 +76,6 @@ class AuthZSettings DBConn dbconn = new AuthZSettings.DBConn(); DBConn dbconn = new AuthZSettings.DBConn(); dbconn.uri = properties.getProperty("db_uri", "").strip(); dbconn.uri = properties.getProperty("db_uri", "").strip(); dbconn.schema = properties.getProperty("db_schema", "").strip(); dbconn.user_name = properties.getProperty("db_user_name", "").strip(); dbconn.user_name = properties.getProperty("db_user_name", "").strip(); dbconn.password = properties.getProperty("db_password", "").strip(); dbconn.password = properties.getProperty("db_password", "").strip(); return dbconn; return dbconn; Loading data-access/servlet/src/main/java/common/webapi/Settings.java +1 −4 Original line number Original line Diff line number Diff line Loading @@ -37,13 +37,12 @@ class Settings public static class DBConn public static class DBConn { { private String uri; private String uri; private String schema; private String user_name; private String user_name; private String password; private String password; public String toString() public String toString() { { return uri() + " [" + schema + "] " + user_name + " / " + password + " "; return uri() + " " + user_name; } } public boolean isDbUriEmpty() public boolean isDbUriEmpty() Loading @@ -52,7 +51,6 @@ class Settings } } public String uri() { return uri; } public String uri() { return uri; } public String schema() { return schema; } public String userName() { return user_name; } public String userName() { return user_name; } public String password() { return password; } public String password() { return password; } } } Loading Loading @@ -144,7 +142,6 @@ class Settings { { DBConn dbconn = new Settings.DBConn(); DBConn dbconn = new Settings.DBConn(); dbconn.uri = properties.getProperty("db_uri", "").strip(); dbconn.uri = properties.getProperty("db_uri", "").strip(); dbconn.schema = properties.getProperty("db_schema", "").strip(); dbconn.user_name = properties.getProperty("db_user_name", "").strip(); dbconn.user_name = properties.getProperty("db_user_name", "").strip(); dbconn.password = properties.getProperty("db_password", "").strip(); dbconn.password = properties.getProperty("db_password", "").strip(); return dbconn; return dbconn; Loading docker/Dockerfile.soda +1 −1 Original line number Original line Diff line number Diff line Loading @@ -61,7 +61,7 @@ COPY deps/context.xml ${WEBAPP_DIR}/META-INF/context.xml # enable IA2 token filter update # enable IA2 token filter update RUN chmod -R a+rwX ${WEBAPP_DIR}/WEB-INF \ RUN chmod -R a+rwX ${WEBAPP_DIR}/WEB-INF \ && touch ${WEBAPP_DIR}/WEB-INF/classes/ia2token.properties \ && touch ${WEBAPP_DIR}/WEB-INF/classes/auth.properties \ && touch ${WEBAPP_DIR}/WEB-INF/classes/iamtoken.properties \ && touch ${WEBAPP_DIR}/WEB-INF/classes/iamtoken.properties \ && chmod a+rw ${WEBAPP_DIR}/WEB-INF/classes/*.properties && chmod a+rw ${WEBAPP_DIR}/WEB-INF/classes/*.properties Loading docker/start-soda.sh +2 −4 Original line number Original line Diff line number Diff line Loading @@ -16,7 +16,6 @@ OIDC_CLIENT=${OIDC_CLIENT:-} OIDC_SECRET=${OIDC_SECRET:-} OIDC_SECRET=${OIDC_SECRET:-} AUTHZ_DB_URL=${AUTHZ_DB_URL:-} AUTHZ_DB_URL=${AUTHZ_DB_URL:-} AUTHZ_DB_SCHEMA=${AUTHZ_DB_SCHEMA:-} AUTHZ_DB_USERNAME=${AUTHZ_DB_USERNAME:-} AUTHZ_DB_USERNAME=${AUTHZ_DB_USERNAME:-} AUTHZ_DB_PASSWORD=${AUTHZ_DB_PASSWORD:-} AUTHZ_DB_PASSWORD=${AUTHZ_DB_PASSWORD:-} Loading Loading @@ -46,7 +45,7 @@ fi if [ -z "$OIDC_RAP_URL" ] || [ -z "$OIDC_GMS_URL" ] || [ -z "$OIDC_CLIENT" ] || [ -z "$OIDC_SECRET" ] \ if [ -z "$OIDC_RAP_URL" ] || [ -z "$OIDC_GMS_URL" ] || [ -z "$OIDC_CLIENT" ] || [ -z "$OIDC_SECRET" ] \ [ -z "$AUTHZ_DB_URL" ] || [ -z "$AUTHZ_DB_SCHEMA" ] || [ -z "$AUTHZ_DB_USERNAME" ] || [ -z "$AUTHZ_DB_PASSWORD" ]; [ -z "$AUTHZ_DB_URL" ] || [ -z "$AUTHZ_DB_USERNAME" ] || [ -z "$AUTHZ_DB_PASSWORD" ]; then then echo "Some of OIDC_ or AUTHZ_ is not set. All must be set to activate security." echo "Some of OIDC_ or AUTHZ_ is not set. All must be set to activate security." touch $WEBAPP_DIR/WEB-INF/security.node.xml touch $WEBAPP_DIR/WEB-INF/security.node.xml Loading @@ -61,12 +60,11 @@ else echo "store_state_on_login_endpoint=true" echo "store_state_on_login_endpoint=true" echo "scope=openid email profile read:rap" echo "scope=openid email profile read:rap" echo "allow_anonymous_access=true" echo "allow_anonymous_access=true" } > $WEBAPP_DIR/WEB-INF/classes/ia2token.properties } > $WEBAPP_DIR/WEB-INF/classes/auth.properties echo "Config VLKB authorization ..." echo "Config VLKB authorization ..." { { echo "db_uri=$AUTHZ_DB_URL" echo "db_uri=$AUTHZ_DB_URL" echo "db_schema=$AUTHZ_DB_SCHEMA" echo "db_user_name=$AUTHZ_DB_USERNAME" echo "db_user_name=$AUTHZ_DB_USERNAME" echo "db_password=$AUTHZ_DB_PASSWORD" echo "db_password=$AUTHZ_DB_PASSWORD" } > $WEBAPP_DIR/WEB-INF/classes/authpolicy.properties } > $WEBAPP_DIR/WEB-INF/classes/authpolicy.properties Loading Loading
README.md +0 −1 Original line number Original line Diff line number Diff line Loading @@ -61,7 +61,6 @@ Configure security: | **OIDC_CLIENT** | client-id of a Relying party | | **OIDC_CLIENT** | client-id of a Relying party | | **OIDC_SECRET** | secret of of the client | | **OIDC_SECRET** | secret of of the client | | **AUTHZ_DB_URL** | DB where a table with authorization info ('groups' column) can be found | | **AUTHZ_DB_URL** | DB where a table with authorization info ('groups' column) can be found | | **AUTHZ_DB_SCHEMA** | schema of the authorization table | | **AUTHZ_DB_USERNAME** | user in the DB with authorization table | | **AUTHZ_DB_USERNAME** | user in the DB with authorization table | | **AUTHZ_DB_PASSWORD** | password for the DB-user | | **AUTHZ_DB_PASSWORD** | password for the DB-user | Loading
data-access/servlet/src/main/java/auth/authz/webapi/AuthZSettings.java +1 −4 Original line number Original line Diff line number Diff line Loading @@ -14,17 +14,15 @@ class AuthZSettings public static class DBConn public static class DBConn { { private String uri; private String uri; private String schema; private String user_name; private String user_name; private String password; private String password; public String toString() public String toString() { { return uri() + " [" + schema + "] " + user_name + " / " + password + " "; return uri() + " " + user_name; } } public String uri() { return uri; } public String uri() { return uri; } public String schema() { return schema; } public String userName() { return user_name; } public String userName() { return user_name; } public String password() { return password; } public String password() { return password; } } } Loading Loading @@ -78,7 +76,6 @@ class AuthZSettings DBConn dbconn = new AuthZSettings.DBConn(); DBConn dbconn = new AuthZSettings.DBConn(); dbconn.uri = properties.getProperty("db_uri", "").strip(); dbconn.uri = properties.getProperty("db_uri", "").strip(); dbconn.schema = properties.getProperty("db_schema", "").strip(); dbconn.user_name = properties.getProperty("db_user_name", "").strip(); dbconn.user_name = properties.getProperty("db_user_name", "").strip(); dbconn.password = properties.getProperty("db_password", "").strip(); dbconn.password = properties.getProperty("db_password", "").strip(); return dbconn; return dbconn; Loading
data-access/servlet/src/main/java/common/webapi/Settings.java +1 −4 Original line number Original line Diff line number Diff line Loading @@ -37,13 +37,12 @@ class Settings public static class DBConn public static class DBConn { { private String uri; private String uri; private String schema; private String user_name; private String user_name; private String password; private String password; public String toString() public String toString() { { return uri() + " [" + schema + "] " + user_name + " / " + password + " "; return uri() + " " + user_name; } } public boolean isDbUriEmpty() public boolean isDbUriEmpty() Loading @@ -52,7 +51,6 @@ class Settings } } public String uri() { return uri; } public String uri() { return uri; } public String schema() { return schema; } public String userName() { return user_name; } public String userName() { return user_name; } public String password() { return password; } public String password() { return password; } } } Loading Loading @@ -144,7 +142,6 @@ class Settings { { DBConn dbconn = new Settings.DBConn(); DBConn dbconn = new Settings.DBConn(); dbconn.uri = properties.getProperty("db_uri", "").strip(); dbconn.uri = properties.getProperty("db_uri", "").strip(); dbconn.schema = properties.getProperty("db_schema", "").strip(); dbconn.user_name = properties.getProperty("db_user_name", "").strip(); dbconn.user_name = properties.getProperty("db_user_name", "").strip(); dbconn.password = properties.getProperty("db_password", "").strip(); dbconn.password = properties.getProperty("db_password", "").strip(); return dbconn; return dbconn; Loading
docker/Dockerfile.soda +1 −1 Original line number Original line Diff line number Diff line Loading @@ -61,7 +61,7 @@ COPY deps/context.xml ${WEBAPP_DIR}/META-INF/context.xml # enable IA2 token filter update # enable IA2 token filter update RUN chmod -R a+rwX ${WEBAPP_DIR}/WEB-INF \ RUN chmod -R a+rwX ${WEBAPP_DIR}/WEB-INF \ && touch ${WEBAPP_DIR}/WEB-INF/classes/ia2token.properties \ && touch ${WEBAPP_DIR}/WEB-INF/classes/auth.properties \ && touch ${WEBAPP_DIR}/WEB-INF/classes/iamtoken.properties \ && touch ${WEBAPP_DIR}/WEB-INF/classes/iamtoken.properties \ && chmod a+rw ${WEBAPP_DIR}/WEB-INF/classes/*.properties && chmod a+rw ${WEBAPP_DIR}/WEB-INF/classes/*.properties Loading
docker/start-soda.sh +2 −4 Original line number Original line Diff line number Diff line Loading @@ -16,7 +16,6 @@ OIDC_CLIENT=${OIDC_CLIENT:-} OIDC_SECRET=${OIDC_SECRET:-} OIDC_SECRET=${OIDC_SECRET:-} AUTHZ_DB_URL=${AUTHZ_DB_URL:-} AUTHZ_DB_URL=${AUTHZ_DB_URL:-} AUTHZ_DB_SCHEMA=${AUTHZ_DB_SCHEMA:-} AUTHZ_DB_USERNAME=${AUTHZ_DB_USERNAME:-} AUTHZ_DB_USERNAME=${AUTHZ_DB_USERNAME:-} AUTHZ_DB_PASSWORD=${AUTHZ_DB_PASSWORD:-} AUTHZ_DB_PASSWORD=${AUTHZ_DB_PASSWORD:-} Loading Loading @@ -46,7 +45,7 @@ fi if [ -z "$OIDC_RAP_URL" ] || [ -z "$OIDC_GMS_URL" ] || [ -z "$OIDC_CLIENT" ] || [ -z "$OIDC_SECRET" ] \ if [ -z "$OIDC_RAP_URL" ] || [ -z "$OIDC_GMS_URL" ] || [ -z "$OIDC_CLIENT" ] || [ -z "$OIDC_SECRET" ] \ [ -z "$AUTHZ_DB_URL" ] || [ -z "$AUTHZ_DB_SCHEMA" ] || [ -z "$AUTHZ_DB_USERNAME" ] || [ -z "$AUTHZ_DB_PASSWORD" ]; [ -z "$AUTHZ_DB_URL" ] || [ -z "$AUTHZ_DB_USERNAME" ] || [ -z "$AUTHZ_DB_PASSWORD" ]; then then echo "Some of OIDC_ or AUTHZ_ is not set. All must be set to activate security." echo "Some of OIDC_ or AUTHZ_ is not set. All must be set to activate security." touch $WEBAPP_DIR/WEB-INF/security.node.xml touch $WEBAPP_DIR/WEB-INF/security.node.xml Loading @@ -61,12 +60,11 @@ else echo "store_state_on_login_endpoint=true" echo "store_state_on_login_endpoint=true" echo "scope=openid email profile read:rap" echo "scope=openid email profile read:rap" echo "allow_anonymous_access=true" echo "allow_anonymous_access=true" } > $WEBAPP_DIR/WEB-INF/classes/ia2token.properties } > $WEBAPP_DIR/WEB-INF/classes/auth.properties echo "Config VLKB authorization ..." echo "Config VLKB authorization ..." { { echo "db_uri=$AUTHZ_DB_URL" echo "db_uri=$AUTHZ_DB_URL" echo "db_schema=$AUTHZ_DB_SCHEMA" echo "db_user_name=$AUTHZ_DB_USERNAME" echo "db_user_name=$AUTHZ_DB_USERNAME" echo "db_password=$AUTHZ_DB_PASSWORD" echo "db_password=$AUTHZ_DB_PASSWORD" } > $WEBAPP_DIR/WEB-INF/classes/authpolicy.properties } > $WEBAPP_DIR/WEB-INF/classes/authpolicy.properties Loading