Skip to content

Commit 31d5661

Browse files
authored
Release 0.6.0
Release 0.6.0
2 parents 3f91b27 + 3c25ad1 commit 31d5661

File tree

134 files changed

+5265
-504
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

134 files changed

+5265
-504
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -128,12 +128,12 @@ the
128128
default configuration.
129129

130130
```properties
131-
# global service route configuration for email interaction requests
131+
# global service route configuration for mail interaction requests
132132
service.host.name=${DM_SERVICE_HOST:localhost}
133133
service.host.protocol=${DM_HOST_PROTOCOL:https}
134134
service.host.port=${DM_SERVICE_PORT:-1}
135135

136-
# route for email confirmation consumption
136+
# route for mail confirmation consumption
137137
email-confirmation-endpoint=${EMAIL_CONFIRMATION_ENDPOINT:login}
138138
email-confirmation-parameter=${EMAIL_CONFIRMATION_PARAMETER:confirm-email}
139139

@@ -163,19 +163,19 @@ spring.datasource.username=${USER_DB_USER_NAME:myusername}
163163
spring.datasource.password=${USER_DB_USER_PW:astrongpassphrase!}
164164
spring.jpa.hibernate.ddl-auto=update
165165

166-
# email configuration
166+
# mail configuration
167167
spring.mail.username=${MAIL_USERNAME}
168168
spring.mail.password=${MAIL_PASSWORD}
169169
spring.mail.host=${MAIL_HOST:smtp.gmail.com}
170170
spring.mail.default-encoding=UTF-8
171171
spring.mail.port=${MAIL_PORT:587}
172172

173-
# global service route configuration for email interaction requests
173+
# global service route configuration for mail interaction requests
174174
service.host.name=${DM_SERVICE_HOST:localhost}
175175
service.host.protocol=${DM_HOST_PROTOCOL:https}
176176
service.host.port=${DM_SERVICE_PORT:-1}
177177

178-
# route for email confirmation consumption
178+
# route for mail confirmation consumption
179179
email-confirmation-endpoint=${EMAIL_CONFIRMATION_ENDPOINT:login}
180180
email-confirmation-parameter=${EMAIL_CONFIRMATION_PARAMETER:confirm-email}
181181

authentication/pom.xml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,18 @@
5454
<version>0.5.0</version>
5555
<scope>compile</scope>
5656
</dependency>
57+
<dependency>
58+
<groupId>life.qbic</groupId>
59+
<artifactId>logging</artifactId>
60+
<version>0.5.0</version>
61+
<scope>compile</scope>
62+
</dependency>
5763
</dependencies>
5864

5965
<properties>
6066
<maven.compiler.source>17</maven.compiler.source>
6167
<maven.compiler.target>17</maven.compiler.target>
6268
</properties>
6369

70+
6471
</project>

authentication/src/main/java/life/qbic/authentication/application/user/password/NewPassword.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
import life.qbic.application.commons.ApplicationResponse;
44
import life.qbic.authentication.application.user.registration.UserRegistrationService;
55
import life.qbic.authentication.domain.user.concept.EncryptedPassword.PasswordValidationException;
6+
import life.qbic.logging.api.Logger;
7+
import life.qbic.logging.service.LoggerFactory;
68

79
/**
810
* <b>New password use case</b>
@@ -13,7 +15,7 @@
1315
*/
1416
public class NewPassword implements NewPasswordInput {
1517

16-
private static final org.slf4j.Logger log = org.slf4j.LoggerFactory.getLogger(NewPassword.class);
18+
private static final Logger log = LoggerFactory.logger(NewPassword.class.getName());
1719
private final UserRegistrationService userRegistrationService;
1820
private NewPasswordOutput useCaseOutput;
1921

authentication/src/main/java/life/qbic/authentication/application/user/password/PasswordResetInput.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ public interface PasswordResetInput {
1212
/**
1313
* Requests a password reset for a user identified by the user id.
1414
*
15-
* @param emailAddress the user's email address
15+
* @param emailAddress the user's mail address
1616
* @since 1.0.0
1717
*/
1818
void resetPassword(String emailAddress);

authentication/src/main/java/life/qbic/authentication/application/user/registration/ConfirmEmailInput.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88
public interface ConfirmEmailInput {
99

1010
/**
11-
* Confirms the user's email address
11+
* Confirms the user's mail address
1212
*
13-
* @param userID the user whose email address is to be confirmed
13+
* @param userID the user whose mail address is to be confirmed
1414
* @since 1.0.0
1515
*/
1616
void confirmEmailAddress(String userID);

authentication/src/main/java/life/qbic/authentication/application/user/registration/RegisterUserInput.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ public interface RegisterUserInput {
1313
* <p>The raw password passed needs to be cleared, after it has been successfully processed.
1414
*
1515
* @param fullName the full name of the user
16-
* @param email the user's email address
16+
* @param email the user's mail address
1717
* @param rawPassword the user selected raw password for authentication
1818
* @since 1.0.0
1919
*/

authentication/src/main/java/life/qbic/authentication/application/user/registration/Registration.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,22 @@
55
import life.qbic.authentication.domain.user.concept.EmailAddress.EmailValidationException;
66
import life.qbic.authentication.domain.user.concept.EncryptedPassword.PasswordValidationException;
77
import life.qbic.authentication.domain.user.concept.FullName.FullNameValidationException;
8+
import life.qbic.logging.api.Logger;
9+
import life.qbic.logging.service.LoggerFactory;
810

911
/**
1012
* <b>User Registration use case</b>
1113
*
1214
* <p>Tries to register a new user and create a user account.
1315
*
14-
* <p>In case a user with the provided email already exists, the registration will fail and calls
16+
* <p>In case a user with the provided mail already exists, the registration will fail and calls
1517
* the failure output method.
1618
*
1719
* @since 1.0.0
1820
*/
1921
public class Registration implements RegisterUserInput {
2022

21-
private static final org.slf4j.Logger log = org.slf4j.LoggerFactory.getLogger(Registration.class);
23+
private static final Logger log = LoggerFactory.logger(Registration.class.getName());
2224

2325
private RegisterUserOutput registerUserOutput;
2426

authentication/src/main/java/life/qbic/authentication/application/user/registration/UserRegistrationException.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* <p>This exception is supposed to be thrown, if the provided user credentials violate one or more policies
1515
* during the registration process. It's intention is to contain the exceptions thrown for each of the vioolated credentials</p>
1616
*
17-
* Example: A user provides a malformed email value and an empty user name.
17+
* Example: A user provides a malformed mail value and an empty user name.
1818
* Since this violates the established policies, the method will catch the individual ApplicationExceptions and add them to this Exception
1919
*
2020
* @since 1.0.0

authentication/src/main/java/life/qbic/authentication/application/user/registration/UserRegistrationService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public UserRegistrationService(NotificationService notificationService,
6262
* client's responsibility to handle the raw password.
6363
*
6464
* @param fullName the full name of the user
65-
* @param email the email address of the user
65+
* @param email the mail address of the user
6666
* @param rawPassword the raw password provided by the user
6767
* @return a registration response with information about if the registration was successful or
6868
* not.

authentication/src/main/java/life/qbic/authentication/domain/registry/DomainRegistry.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
/**
77
* <b>Domain Registry</b>
88
*
9-
* <p>Provides access to registered domain services.
9+
* <p>Provides access to registered domain service.
1010
*
1111
* @since 1.0.0
1212
*/

0 commit comments

Comments
 (0)