diff --git a/servlet/spring-boot/java/authentication/one-time-token/magic-link/src/main/java/org/example/magiclink/MagicLinkGeneratedOneTimeTokenHandler.java b/servlet/spring-boot/java/authentication/one-time-token/magic-link/src/main/java/org/example/magiclink/MagicLinkGeneratedOneTimeTokenHandler.java index fa9420a..7047eae 100644 --- a/servlet/spring-boot/java/authentication/one-time-token/magic-link/src/main/java/org/example/magiclink/MagicLinkGeneratedOneTimeTokenHandler.java +++ b/servlet/spring-boot/java/authentication/one-time-token/magic-link/src/main/java/org/example/magiclink/MagicLinkGeneratedOneTimeTokenHandler.java @@ -1,3 +1,19 @@ +/* + * Copyright 2024 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package org.example.magiclink; import java.io.IOException; diff --git a/servlet/spring-boot/java/authentication/one-time-token/magic-link/src/main/java/org/example/magiclink/MailSender.java b/servlet/spring-boot/java/authentication/one-time-token/magic-link/src/main/java/org/example/magiclink/MailSender.java index e65a052..24e51f0 100644 --- a/servlet/spring-boot/java/authentication/one-time-token/magic-link/src/main/java/org/example/magiclink/MailSender.java +++ b/servlet/spring-boot/java/authentication/one-time-token/magic-link/src/main/java/org/example/magiclink/MailSender.java @@ -1,3 +1,19 @@ +/* + * Copyright 2024 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package org.example.magiclink; import org.springframework.mail.SimpleMailMessage; diff --git a/servlet/spring-boot/java/authentication/one-time-token/magic-link/src/test/java/org/example/magiclink/MagicLinkApplicationTests.java b/servlet/spring-boot/java/authentication/one-time-token/magic-link/src/test/java/org/example/magiclink/MagicLinkApplicationTests.java index 1f55003..fbde702 100644 --- a/servlet/spring-boot/java/authentication/one-time-token/magic-link/src/test/java/org/example/magiclink/MagicLinkApplicationTests.java +++ b/servlet/spring-boot/java/authentication/one-time-token/magic-link/src/test/java/org/example/magiclink/MagicLinkApplicationTests.java @@ -16,10 +16,10 @@ package org.example.magiclink; -import jakarta.mail.internet.MimeMessage; import com.icegreen.greenmail.junit5.GreenMailExtension; import com.icegreen.greenmail.util.GreenMailUtil; import com.icegreen.greenmail.util.ServerSetupTest; +import jakarta.mail.internet.MimeMessage; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension;