Closed davitol closed 5 years ago
curl -u admin:pass 'http://base_url/ocs/v1.php/apps/twofactor_totp/api/v1/validate/{user_id}/{key}?format=json'
returns {"ocs":{"meta":{"status":"ok","statuscode":100,"message":"OK","totalitems":"","itemsperpage":""},"data":{"result":true}}}
@davitol Issues found while testing 0.6.0 RC1
* [ ] #129 CLI command twofactorauth:enable does not enable two-factor authentication for a user.
I added a comment to related ticket. This command is not related with totp app and working as expected. I guess we can ignore this issue.
All tests run with TOTP 0.6.0. RC1 and ownCloud 10.2.1
Twofactor TOTP Test Plan
Having the app freeotp (android or ios) scan the QR code provided - enter a random verification code
Having the app freeotp (android or ios) scan the QR code provided and set it up.
Login using user1, get a new code in the freeotp app. Introduce it in the login view. Login.
Having the app freeotp (android or ios) scan the QR code provided and set it up.
Login using user1, get a new code in the freeotp app. Introduce it in the login view. Login. Logout. Login again using same code
Login using user1, get a new code in the freeotp app for user2. Introduce it in the login view. Login.
Login using user1, totp.
Disable TOTP in the personal settings of user1. Login again
Login using user1, totp.
Disable TOTP in the personal settings of user1
Enable it again, set it up scanning the new QR code.
Login using user1, totp.
Disable TOTP in the personal settings of user1
Enable it again, do not scan the new QR code but use a current code from the first setup to verify
Having the app freeotp (android or ios) scan the QR code provided and set it up.
Try to login with user1 using his password. When the totp input appears introduce random numbers, emojis, negative numbers and empty string.
Having the app freeotp (android or ios) scan the QR code provided and set it up.
Login using ldap_user, get a new code in the freeotp app. Introduce it in the login view. Login.
Having the app google authenticator (android or ios) scan the QR code provided and set it up.
Login using user1, get a new code in the google authenticator app. Introduce it in the login view. Login.
Having the app google authenticator (android or ios) set up the account in the app using the key.
Login using user1, get a new code in the google authenticator app. Introduce it in the login view. Login.