Skip to content

Commit f7b144d

Browse files
committed
Update Magic Link Sample
Issue gh-312
1 parent 2c32dde commit f7b144d

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

servlet/spring-boot/java/authentication/one-time-token/magic-link/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ java {
1111
}
1212

1313
repositories {
14+
mavenLocal()
1415
mavenCentral()
1516
maven { url "https://repo.spring.io/milestone" }
1617
maven { url "https://repo.spring.io/snapshot" }
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,19 +25,19 @@
2525
import org.springframework.security.authentication.ott.OneTimeToken;
2626
import org.springframework.security.web.DefaultRedirectStrategy;
2727
import org.springframework.security.web.RedirectStrategy;
28-
import org.springframework.security.web.authentication.ott.GeneratedOneTimeTokenHandler;
28+
import org.springframework.security.web.authentication.ott.OneTimeTokenGenerationSuccessHandler;
2929
import org.springframework.security.web.util.UrlUtils;
3030
import org.springframework.stereotype.Component;
3131
import org.springframework.web.util.UriComponentsBuilder;
3232

3333
@Component
34-
public class MagicLinkGeneratedOneTimeTokenHandler implements GeneratedOneTimeTokenHandler {
34+
public class MagicLinkOneTimeTokenGenerationSuccessHandler implements OneTimeTokenGenerationSuccessHandler {
3535

3636
private final MailSender mailSender;
3737

3838
private final RedirectStrategy redirectStrategy = new DefaultRedirectStrategy();
3939

40-
public MagicLinkGeneratedOneTimeTokenHandler(MailSender mailSender) {
40+
public MagicLinkOneTimeTokenGenerationSuccessHandler(MailSender mailSender) {
4141
this.mailSender = mailSender;
4242
}
4343

0 commit comments

Comments
 (0)