Navigation

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

    Guide to secure your SmartAPI Account with two factor authentication

    General Discussion
    0
    104
    1955
    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
      aj_Brk @babitakundu last edited by

      @babitakundu are you providing 4 fields. It only needs 3. I didnt face this exception.

      B 1 Reply Last reply Reply Quote 0
      • A
        aj_Brk @imakr last edited by

        @imakr shared the code in the forum. Uses pyotp library

        1 Reply Last reply Reply Quote 0
        • A
          aj_Brk @anil_patel last edited by

          @anil_patel i don't think that is possible as the secret is generated by angel servers, logic of which is not shared. We can't do this without secret shared by them.

          punit 1 Reply Last reply Reply Quote 0
          • B
            babitakundu @aj_Brk last edited by

            @aj_Brk i passed obj.generateSession(usrname,pwd,totp)

            1 Reply Last reply Reply Quote 0
            • K
              KalpeshRajai last edited by

              I am using the .NET SDK and Now I am getting the Invalid Token error!!

              What we can do as I am using the .NET SDK?

              https://github.com/angel-one/smartapi-dotnet

              1 Reply Last reply Reply Quote 0
              • M
                mudit236 @babitakundu last edited by

                @babitakundu @admin facing the same error, has the smartapi-python library been updated for totp changes?

                punit A 3 Replies Last reply Reply Quote 0
                • punit
                  punit @mudit236 last edited by

                  @mudit236 Yes, the files are updated in github, need to checkout the changes are make them manually.
                  45e1dad5-010e-4264-96af-68711607d1fc-image.png

                  M B A 3 Replies Last reply Reply Quote 0
                  • M
                    mudit236 @punit last edited by

                    @Ashok Okay thanks, not sure why these changes wouldnt be committed to main from angel one's side as it is a pretty major procedural change

                    punit 1 Reply Last reply Reply Quote 0
                    • B
                      babitakundu @punit last edited by

                      @Ashok yes I saw the changes but then also I am getting the same error.

                      M 1 Reply Last reply Reply Quote 0
                      • A
                        aj_Brk @admin last edited by

                        @ivar i don't think you need to paas totp everytime. I tested get profile and other apis. It is working like before. Only login has changes.

                        I 1 Reply Last reply Reply Quote 0
                        • A
                          aj_Brk @punit last edited by

                          @admin i too had to build the new code manually. Can you get the code merged to main?

                          1 Reply Last reply Reply Quote 0
                          • punit
                            punit @mudit236 last edited by

                            @mudit236 AB's release management is a joke which we all know 🙂

                            1 Reply Last reply Reply Quote 0
                            • punit
                              punit @aj_Brk last edited by

                              @aj_Brk Secret is time based one generated by local app or code using the secret key or QR code. It will be authenticated against the masterkey with AB servers. So it is possible

                              A 1 Reply Last reply Reply Quote 0
                              • punit
                                punit @anil_patel last edited by

                                @anil_patel You can generate using code locally . for example for Python, use pyotp package

                                1 Reply Last reply Reply Quote 0
                                • punit
                                  punit @ravitandur last edited by

                                  @ravitandur It is same API, so should be working. only extra totp need to be sent.

                                  1 Reply Last reply Reply Quote 0
                                  • A
                                    aj_Brk @punit last edited by

                                    @Ashok what i meant is you can't get this secret by just username and password as Anil is asking. One has to go to enable otp page to get this code one time.

                                    punit 1 Reply Last reply Reply Quote 0
                                    • punit
                                      punit @aj_Brk last edited by

                                      @aj_Brk correct

                                      1 Reply Last reply Reply Quote 0
                                      • A
                                        aj_Brk @mudit236 last edited by

                                        @babitakundu i guess you have to manually download the repo and run python setup.py install. I dont see the code yet updated on pip

                                        punit 1 Reply Last reply Reply Quote 0
                                        • punit
                                          punit @aj_Brk last edited by

                                          @aj_Brk Admins are adding in pip. If you want to try meanwhile, edit directly in local or download from github.

                                          1 Reply Last reply Reply Quote 0
                                          • M
                                            Meenavenkit @babitakundu last edited by

                                            @babitakundu just replace the generatesession def with new one. it worked for me. You have to manually edit in source file

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