Open NMZ0429 opened 1 month ago
Hi! I am trying to understand what the scenario for a migration would be like here, would you be willing to give some kind of user story behind this?
Update: found resources for this here
Having to parse a proto message defo seems pretty heavy addition. I can now see the eventual demand, but this seems like possibly quite a bit of additional dependency for something that could be done outside of the scope of this lib
Summary
otpauth
URL but nototpauth-migration
which is used to transfer existing TOTP account from authenticator such as Google Auth. Adding support for that type of URL is useful for those who want to develop authenticator in Rust and give the ability to transfer existing account to it.Possible Implementation
otpauth-migration://offline?data=BASE64STRING...
and simply parsing the base64 encoded string with protobuf extracts all information such as issuer and secret key. The definition needed by the protobuf is provided unofficially by some authenticator app like this and I have confirmed that works.