Closed timosturm closed 2 years ago
This is not a key feature of the app (and does not seem to be missed by anyone) but the privacyIDEA server instructs users to either scan a QR code or click on an otpauth-link. Therefore, we should implement it.
On Android this behavior can be tested with
adb shell am start -W -a android.intent.action.VIEW -d '"otpauth://hotp/%40/OATH00005525?secret=PGRJLOR4Z3NMSEXLPJ354CUOKGZMRRZ4&counter=1&digits=6&issuer=TestNetKnights%20IDEA"'
On iOS simulators* with
xcrun simctl openurl booted "otpauth://hotp/%40/OATH00005525?secret=PGRJLOR4Z3NMSEXLPJ354CUOKGZMRRZ4&counter=1&digits=6&issuer=TestNetKnights%20IDEA"
open -a Simulator
The changes necessary for iOS are not implemented yet, see: https://pub.dev/packages/uni_links
Using this plugin, register the app to handle otpauth links.