Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remember 2FA authentication method preference on a per-device/browser basis. #1699

Closed
ddimick opened this issue Feb 4, 2021 · 2 comments · Fixed by #6332
Closed

Remember 2FA authentication method preference on a per-device/browser basis. #1699

ddimick opened this issue Feb 4, 2021 · 2 comments · Fixed by #6332
Labels
area/session Session related features/bugs area/ui UI related features/bugs priority/4/normal Normal priority items type/enhancement Similar to a feature but less impactful
Projects
Milestone

Comments

@ddimick
Copy link

ddimick commented Feb 4, 2021

My use case is that some devices (like a phone) I want to use DUO push, but other devices (like a desktop) I want to use a hardware token. It's an extra step to change the 2FA method every time I switch between those devices.

Perhaps Authelia could set a cookie or use some other method to remember which 2FA method the user most recently used on that device, and offer it by default.

@james-d-elliott james-d-elliott added type/enhancement Similar to a feature but less impactful priority/4/normal Normal priority items labels Feb 5, 2021
@james-d-elliott
Copy link
Member

james-d-elliott commented Feb 5, 2021

Thanks for suggesting this idea.

It's a low priority as we have other things on our table at this time. However we've got a brief design idea that should suffice:

Design

  1. New cookie:
  • has a suffix added to the main cookie name (i.e. _user, _local, _alt, _browser)
  • has a value of a json struct representing browser specific settings
  • has a long lifetime
  • completely separated from the main session identifying cookie (security!)
  1. New API endpoint:
  • similar to /api/user/info that resolves browser specific settings vs user settings and merges them (browser takes precedence)
  • remove method from /api/user/info
  • endpoint something like /api/user/browser or /api/user/info/browser or /api/user/info/local

Caveats

  1. Users sharing browsers may have strange behaviors.

@james-d-elliott james-d-elliott added this to Design in Misc Ideas Feb 5, 2021
@pbek
Copy link

pbek commented Sep 9, 2021

I'm waiting very eagerly for such a feature. 😁

A configurable lifetime for that cookie would also be great to get something like "Remember this device for 30days".

@james-d-elliott james-d-elliott added area/session Session related features/bugs area/ui UI related features/bugs labels Dec 6, 2022
james-d-elliott added a commit that referenced this issue Oct 21, 2023
This implements a per-device two factor method selection. The selection from the UI changes this value and the account wide selection has been moved to settings.

Closes #1699

Signed-off-by: James Elliott <james-d-elliott@users.noreply.github.com>
james-d-elliott added a commit that referenced this issue Oct 21, 2023
This implements a per-device two factor method selection. The selection from the UI changes this value and the account wide selection has been moved to settings.

Closes #1699

Signed-off-by: James Elliott <james-d-elliott@users.noreply.github.com>
james-d-elliott added a commit that referenced this issue Oct 24, 2023
This implements a per-device two factor method selection. The selection from the UI changes this value and the account wide selection has been moved to settings.

Closes #1699

Signed-off-by: James Elliott <james-d-elliott@users.noreply.github.com>
@james-d-elliott james-d-elliott added this to the v4.38.0 milestone Oct 26, 2023
james-d-elliott added a commit that referenced this issue Oct 27, 2023
This implements a per-device two factor method selection. The selection from the UI changes this value and the account wide selection has been moved to settings.

Closes #1699

Signed-off-by: James Elliott <james-d-elliott@users.noreply.github.com>
james-d-elliott added a commit that referenced this issue Oct 28, 2023
This implements a per-device two factor method selection. The selection from the UI changes this value and the account wide selection has been moved to settings.

Closes #1699

Signed-off-by: James Elliott <james-d-elliott@users.noreply.github.com>
james-d-elliott added a commit that referenced this issue Oct 28, 2023
This implements a per-device two factor method selection. The selection from the UI changes this value and the account wide selection has been moved to settings.

Closes #1699

Signed-off-by: James Elliott <james-d-elliott@users.noreply.github.com>
james-d-elliott added a commit that referenced this issue Oct 28, 2023
This implements a per-device two factor method selection. The selection from the UI changes this value and the account wide selection has been moved to settings.

Closes #1699

Signed-off-by: James Elliott <james-d-elliott@users.noreply.github.com>
james-d-elliott added a commit that referenced this issue Oct 28, 2023
This implements a per-device two factor method selection. The selection from the UI changes this value and the account wide selection has been moved to settings.

Closes #1699

Signed-off-by: James Elliott <james-d-elliott@users.noreply.github.com>
james-d-elliott added a commit that referenced this issue Oct 28, 2023
This implements a per-device two factor method selection. The selection from the UI changes this value and the account wide selection has been moved to settings.

Closes #1699

Signed-off-by: James Elliott <james-d-elliott@users.noreply.github.com>
james-d-elliott added a commit that referenced this issue Oct 29, 2023
This implements a per-device two factor method selection. The selection from the UI changes this value and the account wide selection has been moved to settings.

Closes #1699

Signed-off-by: James Elliott <james-d-elliott@users.noreply.github.com>
james-d-elliott added a commit that referenced this issue Oct 29, 2023
This implements a per-device two factor method selection. The selection from the UI changes this value and the account wide selection has been moved to settings.

Closes #1699

Signed-off-by: James Elliott <james-d-elliott@users.noreply.github.com>
james-d-elliott added a commit that referenced this issue Oct 30, 2023
This implements a per-device two factor method selection. The selection from the UI changes this value and the account wide selection has been moved to settings.

Closes #1699

Signed-off-by: James Elliott <james-d-elliott@users.noreply.github.com>
james-d-elliott added a commit that referenced this issue Nov 4, 2023
This implements a per-device two factor method selection. The selection from the UI changes this value and the account wide selection has been moved to settings.

Closes #1699

Signed-off-by: James Elliott <james-d-elliott@users.noreply.github.com>
james-d-elliott added a commit that referenced this issue Nov 11, 2023
This implements a per-device two factor method selection. The selection from the UI changes this value and the account wide selection has been moved to settings.

Closes #1699

Signed-off-by: James Elliott <james-d-elliott@users.noreply.github.com>
james-d-elliott added a commit that referenced this issue Nov 12, 2023
This implements a per-device two factor method selection. The selection from the UI changes this value and the account wide selection has been moved to settings.

Closes #1699

Signed-off-by: James Elliott <james-d-elliott@users.noreply.github.com>
james-d-elliott added a commit that referenced this issue Nov 14, 2023
This implements a per-device two factor method selection. The selection from the UI changes this value and the account wide selection has been moved to settings.

Closes #1699

Signed-off-by: James Elliott <james-d-elliott@users.noreply.github.com>
james-d-elliott added a commit that referenced this issue Nov 17, 2023
This implements a per-device two factor method selection. The selection from the UI changes this value and the account wide selection has been moved to settings.

Closes #1699

Signed-off-by: James Elliott <james-d-elliott@users.noreply.github.com>
james-d-elliott added a commit that referenced this issue Nov 18, 2023
This implements a per-device two factor method selection. The selection from the UI changes this value and the account wide selection has been moved to settings.

Closes #1699

Signed-off-by: James Elliott <james-d-elliott@users.noreply.github.com>
james-d-elliott added a commit that referenced this issue Nov 18, 2023
This implements a per-device two factor method selection. The selection from the UI changes this value and the account wide selection has been moved to settings.

Closes #1699

Signed-off-by: James Elliott <james-d-elliott@users.noreply.github.com>
james-d-elliott added a commit that referenced this issue Nov 20, 2023
This implements a per-device two factor method selection. The selection from the UI changes this value and the account wide selection has been moved to settings.

Closes #1699

Signed-off-by: James Elliott <james-d-elliott@users.noreply.github.com>
james-d-elliott added a commit that referenced this issue Nov 20, 2023
This implements a per-device two factor method selection. The selection from the UI changes this value and the account wide selection has been moved to settings.

Closes #1699

Signed-off-by: James Elliott <james-d-elliott@users.noreply.github.com>
james-d-elliott added a commit that referenced this issue Dec 5, 2023
This implements a per-device two factor method selection. The selection from the UI changes this value and the account wide selection has been moved to settings.

Closes #1699

Signed-off-by: James Elliott <james-d-elliott@users.noreply.github.com>
james-d-elliott added a commit that referenced this issue Dec 6, 2023
This implements a per-device two factor method selection. The selection from the UI changes this value and the account wide selection has been moved to settings.

Closes #1699

Signed-off-by: James Elliott <james-d-elliott@users.noreply.github.com>
james-d-elliott added a commit that referenced this issue Dec 7, 2023
This implements a per-device two factor method selection. The selection from the UI changes this value and the account wide selection has been moved to settings.

Closes #1699

Signed-off-by: James Elliott <james-d-elliott@users.noreply.github.com>
james-d-elliott added a commit that referenced this issue Dec 11, 2023
This implements a per-device two factor method selection. The selection from the UI changes this value and the account wide selection has been moved to settings.

Closes #1699

Signed-off-by: James Elliott <james-d-elliott@users.noreply.github.com>
james-d-elliott added a commit that referenced this issue Dec 12, 2023
This implements a per-device two factor method selection. The selection from the UI changes this value and the account wide selection has been moved to settings.

Closes #1699

Signed-off-by: James Elliott <james-d-elliott@users.noreply.github.com>
james-d-elliott added a commit that referenced this issue Dec 16, 2023
This implements a per-device two factor method selection. The selection from the UI changes this value and the account wide selection has been moved to settings.

Closes #1699

Signed-off-by: James Elliott <james-d-elliott@users.noreply.github.com>
james-d-elliott added a commit that referenced this issue Dec 17, 2023
This implements a per-device two factor method selection. The selection from the UI changes this value and the account wide selection has been moved to settings.

Closes #1699

Signed-off-by: James Elliott <james-d-elliott@users.noreply.github.com>
james-d-elliott added a commit that referenced this issue Dec 20, 2023
This implements a per-device two factor method selection. The selection from the UI changes this value and the account wide selection has been moved to settings.

Closes #1699

Signed-off-by: James Elliott <james-d-elliott@users.noreply.github.com>
james-d-elliott added a commit that referenced this issue Dec 23, 2023
This implements a per-device two factor method selection. The selection from the UI changes this value and the account wide selection has been moved to settings.

Closes #1699

Signed-off-by: James Elliott <james-d-elliott@users.noreply.github.com>
james-d-elliott added a commit that referenced this issue Dec 24, 2023
This implements a per-device two factor method selection. The selection from the UI changes this value and the account wide selection has been moved to settings.

Closes #1699

Signed-off-by: James Elliott <james-d-elliott@users.noreply.github.com>
james-d-elliott added a commit that referenced this issue Dec 24, 2023
This implements a per-device two factor method selection. The selection from the UI changes this value and the account wide selection has been moved to settings.

Closes #1699

Signed-off-by: James Elliott <james-d-elliott@users.noreply.github.com>
james-d-elliott added a commit that referenced this issue Dec 25, 2023
This implements a per-device two factor method selection. The selection from the UI changes this value and the account wide selection has been moved to settings.

Closes #1699

Signed-off-by: James Elliott <james-d-elliott@users.noreply.github.com>
james-d-elliott added a commit that referenced this issue Dec 25, 2023
This implements a per-device two factor method selection. The selection from the UI changes this value and the account wide selection has been moved to settings.

Closes #1699

Signed-off-by: James Elliott <james-d-elliott@users.noreply.github.com>
james-d-elliott added a commit that referenced this issue Dec 26, 2023
This implements a per-device two factor method selection. The selection from the UI changes this value and the account wide selection has been moved to settings.

Closes #1699

Signed-off-by: James Elliott <james-d-elliott@users.noreply.github.com>
james-d-elliott added a commit that referenced this issue Dec 27, 2023
This implements a per-device two factor method selection. The selection from the UI changes this value and the account wide selection has been moved to settings.

Closes #1699

Signed-off-by: James Elliott <james-d-elliott@users.noreply.github.com>
james-d-elliott added a commit that referenced this issue Dec 29, 2023
This implements a per-device two factor method selection. The selection from the UI changes this value and the account wide selection has been moved to settings.

Closes #1699

Signed-off-by: James Elliott <james-d-elliott@users.noreply.github.com>
james-d-elliott added a commit that referenced this issue Dec 29, 2023
This implements a per-device two factor method selection. The selection from the UI changes this value and the account wide selection has been moved to settings.

Closes #1699

Signed-off-by: James Elliott <james-d-elliott@users.noreply.github.com>
james-d-elliott added a commit that referenced this issue Dec 31, 2023
This implements a per-device two factor method selection. The selection from the UI changes this value and the account wide selection has been moved to settings.

Closes #1699

Signed-off-by: James Elliott <james-d-elliott@users.noreply.github.com>
james-d-elliott added a commit that referenced this issue Jan 1, 2024
This implements a per-device two factor method selection. The selection from the UI changes this value and the account wide selection has been moved to settings.

Closes #1699

Signed-off-by: James Elliott <james-d-elliott@users.noreply.github.com>
james-d-elliott added a commit that referenced this issue Jan 13, 2024
This implements a per-device two factor method selection. The selection from the UI changes this value and the account wide selection has been moved to settings.

Closes #1699

Signed-off-by: James Elliott <james-d-elliott@users.noreply.github.com>
james-d-elliott added a commit that referenced this issue Jan 20, 2024
This implements a per-device two factor method selection. The selection from the UI changes this value and the account wide selection has been moved to settings.

Closes #1699

Signed-off-by: James Elliott <james-d-elliott@users.noreply.github.com>
james-d-elliott added a commit that referenced this issue Feb 18, 2024
This implements a per-device two factor method selection. The selection from the UI changes this value and the account wide selection has been moved to settings.

Closes #1699

Signed-off-by: James Elliott <james-d-elliott@users.noreply.github.com>
james-d-elliott added a commit that referenced this issue Feb 18, 2024
This implements a per-device two factor method selection. The selection from the UI changes this value and the account wide selection has been moved to settings.

Closes #1699

Signed-off-by: James Elliott <james-d-elliott@users.noreply.github.com>
james-d-elliott added a commit that referenced this issue Feb 19, 2024
This implements a per-device two factor method selection. The selection from the UI changes this value and the account wide selection has been moved to settings.

Closes #1699

Signed-off-by: James Elliott <james-d-elliott@users.noreply.github.com>
james-d-elliott added a commit that referenced this issue Mar 1, 2024
This implements a per-device two factor method selection. The selection from the UI changes this value and the account wide selection has been moved to settings.

Closes #1699

Signed-off-by: James Elliott <james-d-elliott@users.noreply.github.com>
james-d-elliott added a commit that referenced this issue Mar 2, 2024
This implements a per-device two factor method selection. The selection from the UI changes this value and the account wide selection has been moved to settings.

Closes #1699

Signed-off-by: James Elliott <james-d-elliott@users.noreply.github.com>
james-d-elliott added a commit that referenced this issue Mar 4, 2024
This implements a per-device two factor method selection. The selection from the UI changes this value and the account wide selection has been moved to settings.

Closes #1699

Signed-off-by: James Elliott <james-d-elliott@users.noreply.github.com>
james-d-elliott added a commit that referenced this issue Mar 4, 2024
This implements a per-device two factor method selection. The selection from the UI changes this value and the account wide selection has been moved to settings.

Closes #1699

Signed-off-by: James Elliott <james-d-elliott@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/session Session related features/bugs area/ui UI related features/bugs priority/4/normal Normal priority items type/enhancement Similar to a feature but less impactful
Projects
Development

Successfully merging a pull request may close this issue.

3 participants