Giter Site home page Giter Site logo

ruby-client's People

Contributors

alxstrm avatar codedust avatar ddmler avatar dependabot[bot] avatar fabian-coder avatar kekskurse avatar mrgeneration avatar nickufer avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

ruby-client's Issues

Invalid Base32 Character with 2factor authentication

Hey there,

In my INWX account I activated the "mobile TAN" method or basically 2factor authentication. When I try to authenticate with

user = 'xy'
pass = '123'
shared_secret = '123 456'
INWX::Domrobot.new.set_language('en').use_ote.use_json.set_debug(true).login(user, pass, shared_secret)

I get the following error:

/home/julian/.rbenv/versions/3.0.0/lib/ruby/gems/3.0.0/gems/rotp-5.1.0/lib/rotp/base32.rb:70:in `decode_quint': Invalid Base32 Character - '0' (ROTP::Base32::Base32Error)
        from /home/julian/.rbenv/versions/3.0.0/lib/ruby/gems/3.0.0/gems/rotp-5.1.0/lib/rotp/base32.rb:18:in `block in decode'
        from /home/julian/.rbenv/versions/3.0.0/lib/ruby/gems/3.0.0/gems/rotp-5.1.0/lib/rotp/base32.rb:16:in `each'
        from /home/julian/.rbenv/versions/3.0.0/lib/ruby/gems/3.0.0/gems/rotp-5.1.0/lib/rotp/base32.rb:16:in `decode'
        from /home/julian/.rbenv/versions/3.0.0/lib/ruby/gems/3.0.0/gems/rotp-5.1.0/lib/rotp/otp.rb:49:in `byte_secret'
        from /home/julian/.rbenv/versions/3.0.0/lib/ruby/gems/3.0.0/gems/rotp-5.1.0/lib/rotp/otp.rb:27:in `generate_otp'
        from /home/julian/.rbenv/versions/3.0.0/lib/ruby/gems/3.0.0/gems/rotp-5.1.0/lib/rotp/totp.rb:24:in `now'
        from /home/julian/.rbenv/versions/3.0.0/lib/ruby/gems/3.0.0/gems/inwx-domrobot-3.1/lib/inwx-domrobot.rb:132:in `get_secret_code'
        from /home/julian/.rbenv/versions/3.0.0/lib/ruby/gems/3.0.0/gems/inwx-domrobot-3.1/lib/inwx-domrobot.rb:71:in `login'
        from domain_check.rb:10:in `<main>'

Can you reproduce this issue?

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.