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
{{ message }}
This repository was archived by the owner on Dec 2, 2021. It is now read-only.
Copy file name to clipboardExpand all lines: Resources/doc/troubleshooting.md
+25Lines changed: 25 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -149,3 +149,28 @@ a different page from your application.
149
149
- No, it returns an empty array:
150
150
-**Solution:** our user doesn't have an active two-factor authentication method. Either the `is*Enabled` method
151
151
returns `false` or an essential piece of data (e.g. Google Authenticator secret) is missing.
152
+
153
+
# Trusted device cookie is not set
154
+
155
+
### Problem
156
+
157
+
After you have completed 2fa, you expect that device to be flagged as a "trusted device", but the
158
+
trusted device cookie is not set.
159
+
160
+
### Basic checks
161
+
162
+
- 2fa was completed with that call and you've been fully authenticated afterwards.
163
+
- Together with the 2fa code, you have sent the trusted parameter (default `_trusted`) with a
164
+
`true`-like value. (Background information: Devices are not automatically flagged as trusted. The user has to choose
165
+
if they can trust that device. That's why this extra parameter has to be sent over.)
166
+
167
+
### Troubleshooting
168
+
169
+
Have a look at the response of the HTTP call when you sent over the 2fa and the trusted parameter. Do you see a cookie
170
+
being set (`Set-Cookie` header)?
171
+
172
+
- Yes -> Please validate the cookie's parameters. Make sure everything is fine for that cookie: the path, domain, and
173
+
other cookie options. Did you maybe try to [set it for a top level domain](https://github.com/scheb/two-factor-bundle/issues/242#issuecomment-538735430)?
174
+
- No, there's no cookie set: Unknown issue. Try to reach out for help by
175
+
[creating an issue](https://github.com/scheb/two-factor-bundle/issues/new?labels=Support&template=support-request.md)
0 commit comments