Skip to content
This repository was archived by the owner on Dec 2, 2021. It is now read-only.

Commit beee827

Browse files
committed
Troubleshooting on trusted device cookie
1 parent 704bd01 commit beee827

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

Resources/doc/troubleshooting.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,3 +149,28 @@ a different page from your application.
149149
- No, it returns an empty array:
150150
- **Solution:** our user doesn't have an active two-factor authentication method. Either the `is*Enabled` method
151151
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)
176+
know what you've already tested.

0 commit comments

Comments
 (0)