fixes for demo
This commit is contained in:
parent
c152e0e14d
commit
2b3b44419c
3 changed files with 2 additions and 7 deletions
|
@ -132,11 +132,6 @@ final class MockupLmsAPITemplate implements LmsAPITemplate {
|
||||||
throw new IllegalAccessException("Wrong client credential");
|
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;
|
return true;
|
||||||
} catch (final Exception e) {
|
} catch (final Exception e) {
|
||||||
log.info("Authentication failed: ", e);
|
log.info("Authentication failed: ", e);
|
||||||
|
|
|
@ -7,7 +7,7 @@ logging.file=log/sebserver.log
|
||||||
# data source configuration
|
# data source configuration
|
||||||
spring.datasource.initialize=true
|
spring.datasource.initialize=true
|
||||||
spring.datasource.initialization-mode=always
|
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.driver-class-name=org.mariadb.jdbc.Driver
|
||||||
spring.datasource.platform=dev
|
spring.datasource.platform=dev
|
||||||
spring.datasource.hikari.max-lifetime=600000
|
spring.datasource.hikari.max-lifetime=600000
|
||||||
|
|
|
@ -31,7 +31,7 @@ INSERT IGNORE INTO view VALUES
|
||||||
(11, 'hooked_keys', 12, 11);
|
(11, 'hooked_keys', 12, 11);
|
||||||
|
|
||||||
INSERT IGNORE INTO lms_setup VALUES
|
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
|
INSERT IGNORE INTO seb_client_configuration VALUES
|
||||||
|
|
Loading…
Reference in a new issue