Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

2,598 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Two Factor Totp

REUSE status Downloads Build Status

Sauce Test Status

Tested with the following apps:

Tested with the following hardware devices:

Installation

Nextcloud 25 and newer

The app is shipped and comes with the installation of Nextcloud Server. No additional steps are necessary, besides activating it.

Nextcloud 24 and older

The app is available through the app store. It can be installed through Nextcloud's app management UI.

Enabling TOTP 2FA for your account

Admin configuration

Administrators can harden TOTP settings via occ. Changes only affect newly enrolled secrets; existing enrollments continue to work with the algorithm they were created with.

Hash algorithm

The default algorithm is SHA1 as required by RFC 6238. Stricter environments may prefer SHA256 or SHA512, provided all users' authenticator apps support the chosen algorithm.

Value Algorithm
sha1 SHA1 (default)
sha256 SHA256
sha512 SHA512
occ config:app:set twofactor_totp --type=string algorithm --value=sha256

Secret length

The generated TOTP secret defaults to 32 Base32 characters (160 bits), which meets the recommendation in RFC 4226. Administrators can increase this for higher entropy requirements.

Characters Bits
Minimum 26 130
Default 32 160
Maximum 128 640
occ config:app:set twofactor_totp --type=integer secret_length --value=64

Login with external apps

Once you enable OTP with Two Factor Totp, your applications (for example your Android app or your GNOME app) will need to login using device passwords. To manage it, know more here

Development setup

  • composer i
  • npm ci
  • npm run build or npm run dev more info

About

๐Ÿ”‘ Second factor TOTP (RFC 6238) provider for Nextcloud

Topics

Resources

Contributing

Security policy

Stars

317 stars

Watchers

10 watching

Forks

Used by

Contributors

Languages