You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/modules/ROOT/pages/servlet/authentication/onetimetoken.adoc
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -42,7 +42,7 @@ In the following sections we will explore how to configure OTT Login for your ne
42
42
[[default-pages]]
43
43
== Default Login Page and Default One-Time Token Submit Page
44
44
45
-
When the `oneTimeTokenLogin()` DSL is used, by default the One-Time Token Login Page is auto-generated by the org.springframework.security.web.authentication.ui:DefaultLoginPageGeneratingFilter[].
45
+
When the `oneTimeTokenLogin()` DSL is used, by default the One-Time Token Login Page is auto-generated by the javadoc:org.springframework.security.web.authentication.ui.DefaultLoginPageGeneratingFilter[].
46
46
The DSL will also set up the javadoc:org.springframework.security.web.authentication.ui.DefaultOneTimeTokenSubmitPageGeneratingFilter[] to generate a default One-Time Token submit page.
47
47
48
48
[[sending-token-to-user]]
@@ -179,7 +179,7 @@ class PageController {
179
179
<1> Make the `MagicLinkOneTimeTokenGenerationSuccessHandler` a Spring bean
180
180
<2> Create a login processing URL with the `token` as a query param
181
181
<3> Retrieve the user's email based on the username
182
-
<4> Use the `JavaMailSender` API to send the email to the user with the magic link
182
+
<4> Use the `MailSender` API to send the email to the user with the magic link
183
183
<5> Use the `RedirectOneTimeTokenGenerationSuccessHandler` to perform a redirect to your desired URL
184
184
185
185
The email content will look similar to:
@@ -557,7 +557,7 @@ class MagicLinkOneTimeTokenGenerationSuccessHandler : OneTimeTokenGenerationSucc
557
557
== Customize GenerateOneTimeTokenRequest Instance
558
558
There are a number of reasons that you may want to adjust an GenerateOneTimeTokenRequest. For example, you may want expiresIn to be set to 10 mins, which Spring Security sets to 5 mins by default.
559
559
560
-
You can customize elements of GenerateOneTimeTokenRequest by publishing an GenerateOneTimeTokenRequestResolver as a @Bean, like so:
560
+
You can customize elements of GenerateOneTimeTokenRequest by publishing an GenerateOneTimeTokenRequestResolver as a `@Bean`, like so:
0 commit comments