diff --git a/src/main/java/ch/ethz/seb/sebserver/webservice/servicelayer/lms/impl/MockupLmsAPITemplate.java b/src/main/java/ch/ethz/seb/sebserver/webservice/servicelayer/lms/impl/MockupLmsAPITemplate.java index 5ff1805a..3bca575c 100644 --- a/src/main/java/ch/ethz/seb/sebserver/webservice/servicelayer/lms/impl/MockupLmsAPITemplate.java +++ b/src/main/java/ch/ethz/seb/sebserver/webservice/servicelayer/lms/impl/MockupLmsAPITemplate.java @@ -132,11 +132,6 @@ final class MockupLmsAPITemplate implements LmsAPITemplate { throw new IllegalAccessException("Wrong client credential"); } - final CharSequence plainClientSecret = this.clientCredentialService.getPlainClientSecret(this.credentials); - if (plainClientSecret == null || plainClientSecret.length() <= 0) { - throw new IllegalAccessException("Wrong client credential"); - } - return true; } catch (final Exception e) { log.info("Authentication failed: ", e); diff --git a/src/main/resources/config/application-dev-ws.properties b/src/main/resources/config/application-dev-ws.properties index f5a7a2a8..4db65f9d 100644 --- a/src/main/resources/config/application-dev-ws.properties +++ b/src/main/resources/config/application-dev-ws.properties @@ -7,7 +7,7 @@ logging.file=log/sebserver.log # data source configuration spring.datasource.initialize=true spring.datasource.initialization-mode=always -spring.datasource.url=jdbc:mariadb://localhost:6603/SEBServer?createDatabaseIfNotExist=true&verifyServerCertificate=true&useSSL=true&requireSSL=true +spring.datasource.url=jdbc:mariadb://localhost:3306/SEBServer?createDatabaseIfNotExist=true&verifyServerCertificate=false&useSSL=false&requireSSL=false spring.datasource.driver-class-name=org.mariadb.jdbc.Driver spring.datasource.platform=dev spring.datasource.hikari.max-lifetime=600000 diff --git a/src/main/resources/data-demo.sql b/src/main/resources/data-demo.sql index e984fa93..fe7c6dd3 100644 --- a/src/main/resources/data-demo.sql +++ b/src/main/resources/data-demo.sql @@ -31,7 +31,7 @@ INSERT IGNORE INTO view VALUES (11, 'hooked_keys', 12, 11); INSERT IGNORE INTO lms_setup VALUES - (1, 1, 'test', 'MOCKUP', 'http://', 'test-user', '8d14b78ecdcbec1d010d414a7208dbe5c411f1fa735c35c7427d840453093a3730d1bc0abe13b9b1a8', null, 1) + (1, 1, 'test', 'MOCKUP', 'http://', 'test-user', 'test-user', null, 1) ; INSERT IGNORE INTO seb_client_configuration VALUES