Coder Social home page Coder Social logo

Comments (3)

Engel1ST avatar Engel1ST commented on August 16, 2024 3

Hi jamie-mh,

First of all an HUGE merci (en Français haha). I figure out the problem!

For information, I used http://json.parser.online.fr/ to validate my JSON. Almost everytime, my JSON was valid.

After multiple try (around more than 100 ), I discovered that, if you import a .authpro files with "AuthenticatorSecret" containing LOWERCASE or SPACE in it, the apps crash after few seconds (or almost instantly).
Some provider (like Google (not every time) or Instagram) give secret key with SPACE or in LOWERCASE. When creating manualy the JSON for the .authpro file, the user has to put every "AuthenticatorSecret" in UPPERCASE and without SPACE. I've tested multiple time and the SAME key with or without SPACE OR lower/uppercase doesnt matter => generated code is the same.

Maybe it will be great if you can write somewhere a little tutorial or an info/warning to prevent this trouble. Another solution will be to remove automatically the SPACE and put all "AuthenticatorSecret" in UPPERCASE during the import process!

Now, I've 55 entries in my DB and all is AWSOME!

Thanks you for this great apps. I was looking for a lonnnnnng time an app with search function.

from authenticatorpro.

jamie-mh avatar jamie-mh commented on August 16, 2024

Hi @Engel1ST

I don't see why the number of entries would be a problem. There must be an issue with your file. Here is an example of what a backup file looks like:

{
  "Authenticators": [
    {
      "Type": 2,
      "Icon": "google",
      "Issuer": "Google",
      "Username": "[email protected]",
      "Secret": "SECRETKEY123ABCD",
      "Algorithm": 0,
      "Digits": 6,
      "Period": 30,
      "Counter": 0,
      "Ranking": 0
    }
  ],
  "Categories": [
    {
      "Id": "a8323a2a",
      "Name": "Web",
      "Ranking": 0
    }
  ],
  "AuthenticatorCategories": [
    {
      "CategoryId": "a8323a2a",
      "AuthenticatorSecret": "SECRETKEY123ABCD",
      "Ranking": 0
    }
  ]
}

The Category Id is a random string of 8 alphanumeric characters.
The AuthenticatorCategory is a pair made up of the Category Id and the Authenticator Secret.

In your case, it might be easier for you to leave the Categories and AuthenticatorCategories arrays empty and just create them in the app once you've imported your authenticators.

Let me know if this works for you.

from authenticatorpro.

jamie-mh avatar jamie-mh commented on August 16, 2024

Great!
I'll write some documentation on how the backup files work, it could be useful for anyone else with this issue. As for the icons request you created, I'll get round to that soon when I get the time.

from authenticatorpro.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.