Navigation

    SmartAPI Forum
    • Register
    • Login
    • Search
    • Categories
    • Popular
    • Groups
    • FAQs
    • API Docs

    How to automate totp in java sdk

    NodeJS SDK
    0
    6
    107
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • A
      AmitSky last edited by

      Is there any solution to automate smart-api in java with newly lanuched totp for 2FA.

      S S 3 Replies Last reply Reply Quote 0
      • S
        shivamdg2411 @AmitSky last edited by

        @AmitSky still problem is not resolved please message me. What's app :- +91 8796375407

        1 Reply Last reply Reply Quote 0
        • S
          shahroz14 @AmitSky last edited by

          @AmitSky Need to find an API that can generate the key to OTP (6 digit code)

          B 1 Reply Last reply Reply Quote 0
          • S
            shahroz14 @AmitSky last edited by

            @AmitSky https://github.com/wstrange/GoogleAuth
            this works for me

            1 Reply Last reply Reply Quote 0
            • B
              bh_nil @shahroz14 last edited by

              @shahroz14 +917986051057 message me if unable to resolve.

              1 Reply Last reply Reply Quote 0
              • V
                vh1ne last edited by vh1ne

                Add following dependency to your maven project or download jar and add to class path

                <dependency>
                <groupId>com.warrenstrange</groupId>
                <artifactId>googleauth</artifactId>
                <version>1.4.0</version>
                </dependency>

                then add follwoing code

                GoogleAuthenticator gAuth = new GoogleAuthenticator();
                var totpcode = String.valueOf(gAuth.getTotpPassword(totp_key));

                pass this totpcode to method

                1 Reply Last reply Reply Quote 0
                • First post
                  Last post