Using otpauth URLs

I am creating links to add TOTP authentication for the iCloud keychain. But after clicking the link, will cause an system crash with macOS 12.0.1 and clicking the link with iOS cause an alert: "Cannot Add Verification Code to This Account - A verification code could not be created from this URL.".

I have tried the following link:

otpauth://totp/example.com:Username&secret=4SMF2WK32UQZNHO6JWBO3GDJQYI4MP2D4FQA&issuer=example.com

I also tried the whole thing with the Apple specific prefix, which resulted in the same error.

Is this a general problem with apples integration, or is there anything I am missing?

Not sure if this is still a problem for you, but I found out that at least when using localhost as domain I also got crashes. Perhaps the example.com domain you use is the cause. When using a real domain it works.

Yes, I can confirm, that the issue is fixed. Whether it is fixed with the localhost domain I did not check.

Using otpauth URLs
 
 
Q