Closed CampinCarl closed 8 years ago
Does the app you want to transfer the secret to support this PR from earlier today? Otherwise, the secret is in ~/.config/bna.
Okay, the --optauth-url
parameter from the pull request worked great!
As it turns out, I didn't understand how the secret was stored in the ~/.config/bna/bna.conf
file. When I first attempted to use it I tried to convert the string directly into Base32, failing to realize that it was a Hex encoded string that needed to be decoded first.
Once I did STRING > HEX DECODE > BASE32 ENCODE I got the same secret as the --optauth-url
parameter and everything worked as expected. Thanks for your help!
As to the original error, is there anything I can help test with the --restore
parameter? As far as I can tell it still isn't working due to the 302 HTTP status error.
If not, I've got what I needed so you can certainly close the issue.
Thoughts?
@CampinCarl I just need to figure out why it's redirecting and what it's redirecting to, I'll fix it in a moment :)
@jleclanche Sounds good, thanks again for your help.
Ok, I don't get it, it's redirecting to http://mobile-service.blizzard.com/enrollment/en/initiate_paper_restore.htm which is a 404.
Fixed & tested! :)
Excellent!
jleclanche,
I'm trying to use the
--restore
parameter to determine the secret key for my previously existing authenticator but I'm getting a 302 status. Here's what I'm seeing...It looks like the script isn't handling a site redirection when restoring.
The point of all this is I would like to expose the secret for an authenticator that I can use with another TOTP application, specifically the TOTP plugin for KeePass. I tried doing this with a newly generated authenticator (using your app) but couldn't get the secret to work with that plugin.
Thoughts?
Thanks for your work on this.