privacyidea / pi-authenticator

OTP Authenticator App for privacyIDEA Authentication Server
Other
33 stars 17 forks source link

Register the app to handle otpauth links on android and ios #178

Closed timosturm closed 2 years ago

timosturm commented 3 years ago

Using this plugin, register the app to handle otpauth links.

timosturm commented 3 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"
timosturm commented 3 years ago

The changes necessary for iOS are not implemented yet, see: https://pub.dev/packages/uni_links