mirror of
https://github.com/nextcloud/twofactor_gateway.git
synced 2026-04-25 09:05:55 +03:00
[GH-ISSUE #134] How long is a sent access token valid? #41
Labels
No labels
0. to triage
1. to develop
3. to review
blocked
bug
discussion
duplicate
enhancement
enhancement
gateway:signal
gateway:signal
gateway:signal
gateway:sms
gateway:telegram
hacktoberfest
help wanted
invalid
needs info
php
pull-request
question
technical debt
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/twofactor_gateway-nextcloud#41
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @palto42 on GitHub (Oct 14, 2018).
Original GitHub issue: https://github.com/nextcloud/twofactor_gateway/issues/134
I tried to find out how long an access token sent via the twofactor_gateway (e.g. via Signal) is valid, but it seems it doesn't automatically expire (waited >20 minutes).
Is there an expiry of the sent access tokens and if not, isn't this a security concern?
@ChristophWurst commented on GitHub (Oct 15, 2018):
The code is currently stored in the server session:
github.com/nextcloud/twofactor_gateway@f9e55f2bd1/lib/Provider/AProvider.php (L92), hence it's TTL depends on the server configuration.It should be easy to store a generation timestamp together with the code and check expiry on code usage. Would you be interested in adding that?
@palto42 commented on GitHub (Oct 15, 2018):
Thanks for your quick response.
In my view an expiry would be nice to have, but I have nearly no experience with PHP. If I find some time I will give it a try anyway.
@ChristophWurst commented on GitHub (Dec 21, 2018):
Closing as question was answered