Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Problem with authentication after deployment

Problem with authentication after deployment

Scheduled Pinned Locked Moved Solved General and Desktop
12 Posts 3 Posters 1.1k Views 2 Watching
  • 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.
  • L Offline
    L Offline
    LordCaca
    wrote on last edited by LordCaca
    #1

    Hello everyone,

    I create a application that uses QNetworkRequest and QNetworkAccessManager to do requests to an online API (JSON).

    When I compile and tested it in the Qt Creator it works perfectly, but when I deployed it, the authetication of the login credentials don't work.

    Again: the login work in Qt creator, but doesn't when deployed.

    for deployment I used the cmd windeployqt.exe .

    Pl45m4P 1 Reply Last reply
    0
    • L LordCaca

      Hello everyone,

      I create a application that uses QNetworkRequest and QNetworkAccessManager to do requests to an online API (JSON).

      When I compile and tested it in the Qt Creator it works perfectly, but when I deployed it, the authetication of the login credentials don't work.

      Again: the login work in Qt creator, but doesn't when deployed.

      for deployment I used the cmd windeployqt.exe .

      Pl45m4P Offline
      Pl45m4P Offline
      Pl45m4
      wrote on last edited by
      #2

      @LordCaca

      Where do your login credentials come from? A file?
      Check if all paths are correct.


      If debugging is the process of removing software bugs, then programming must be the process of putting them in.

      ~E. W. Dijkstra

      L 1 Reply Last reply
      1
      • Pl45m4P Pl45m4

        @LordCaca

        Where do your login credentials come from? A file?
        Check if all paths are correct.

        L Offline
        L Offline
        LordCaca
        wrote on last edited by
        #3

        @Pl45m4 I use an online API, and while it's running in Qt Creator, the authetication runs perfectly.
        the problem is when I open the .exe file and I got the error "Wrong User and password".

        Pl45m4P Pablo J. RoginaP 2 Replies Last reply
        0
        • L LordCaca

          @Pl45m4 I use an online API, and while it's running in Qt Creator, the authetication runs perfectly.
          the problem is when I open the .exe file and I got the error "Wrong User and password".

          Pl45m4P Offline
          Pl45m4P Offline
          Pl45m4
          wrote on last edited by Pl45m4
          #4

          @LordCaca

          That didn't answer my question :)

          So you have your login credentials hard coded, are they coming from GUI or file?


          If debugging is the process of removing software bugs, then programming must be the process of putting them in.

          ~E. W. Dijkstra

          L 1 Reply Last reply
          1
          • Pl45m4P Pl45m4

            @LordCaca

            That didn't answer my question :)

            So you have your login credentials hard coded, are they coming from GUI or file?

            L Offline
            L Offline
            LordCaca
            wrote on last edited by
            #5

            @Pl45m4
            From GUI.
            This is the login screen:
            bc58e0d2-2505-48cf-8098-5a98650c8db1-image.png

            If the login is succesful, I get this screen (this one is running from the Qt Creator):
            e598a4cf-ea8f-4525-b357-acc6a26392df-image.png

            But when I run the .exe file and enter the same credentials, I got (user and password incorrects):
            328c3cf4-6f12-4021-ba53-b2c73600a19d-image.png

            1 Reply Last reply
            0
            • L LordCaca

              @Pl45m4 I use an online API, and while it's running in Qt Creator, the authetication runs perfectly.
              the problem is when I open the .exe file and I got the error "Wrong User and password".

              Pablo J. RoginaP Offline
              Pablo J. RoginaP Offline
              Pablo J. Rogina
              wrote on last edited by
              #6

              @LordCaca said in Problem with authentication after deployment:

              online API

              Is that a secure (HTTPS) URL you use to connect to?
              If yes, it looks like you may have issues with the SSL handshake, probably issues with the OpenSSL libraries in PC you deployed your app.

              Is it possible you can gather more details about the login process (any log??) and/or capture network traffic (i.e. Wireshak) to the endpoint?

              Upvote the answer(s) that helped you solve the issue
              Use "Topic Tools" button to mark your post as Solved
              Add screenshots via postimage.org
              Don't ask support requests via chat/PM. Please use the forum so others can benefit from the solution in the future

              L Pablo J. RoginaP 2 Replies Last reply
              1
              • Pablo J. RoginaP Pablo J. Rogina

                @LordCaca said in Problem with authentication after deployment:

                online API

                Is that a secure (HTTPS) URL you use to connect to?
                If yes, it looks like you may have issues with the SSL handshake, probably issues with the OpenSSL libraries in PC you deployed your app.

                Is it possible you can gather more details about the login process (any log??) and/or capture network traffic (i.e. Wireshak) to the endpoint?

                L Offline
                L Offline
                LordCaca
                wrote on last edited by
                #7

                @Pablo-J-Rogina I'll try to wireshark, but both tests were made in my own computer.

                1 Reply Last reply
                0
                • Pablo J. RoginaP Pablo J. Rogina

                  @LordCaca said in Problem with authentication after deployment:

                  online API

                  Is that a secure (HTTPS) URL you use to connect to?
                  If yes, it looks like you may have issues with the SSL handshake, probably issues with the OpenSSL libraries in PC you deployed your app.

                  Is it possible you can gather more details about the login process (any log??) and/or capture network traffic (i.e. Wireshak) to the endpoint?

                  Pablo J. RoginaP Offline
                  Pablo J. RoginaP Offline
                  Pablo J. Rogina
                  wrote on last edited by
                  #8

                  @Pablo-J-Rogina said in Problem with authentication after deployment:

                  Is that a secure (HTTPS) URL you use to connect to?

                  You didn't answer to that question...

                  Upvote the answer(s) that helped you solve the issue
                  Use "Topic Tools" button to mark your post as Solved
                  Add screenshots via postimage.org
                  Don't ask support requests via chat/PM. Please use the forum so others can benefit from the solution in the future

                  L 1 Reply Last reply
                  1
                  • Pablo J. RoginaP Pablo J. Rogina

                    @Pablo-J-Rogina said in Problem with authentication after deployment:

                    Is that a secure (HTTPS) URL you use to connect to?

                    You didn't answer to that question...

                    L Offline
                    L Offline
                    LordCaca
                    wrote on last edited by
                    #9

                    @Pablo-J-Rogina sorry, yes it is. it's from heroku (if it's important)

                    Pablo J. RoginaP 1 Reply Last reply
                    0
                    • L LordCaca

                      @Pablo-J-Rogina sorry, yes it is. it's from heroku (if it's important)

                      Pablo J. RoginaP Offline
                      Pablo J. RoginaP Offline
                      Pablo J. Rogina
                      wrote on last edited by
                      #10

                      @LordCaca said in Problem with authentication after deployment:

                      if it's important

                      well, the idea is to confirm that the URL you're connecting to is using the HTTPS protocol.

                      And if so, it's likely you have an issue with the OpenSSL libraries not in the path in the scenario not working (when you "deploy" your application)

                      Upvote the answer(s) that helped you solve the issue
                      Use "Topic Tools" button to mark your post as Solved
                      Add screenshots via postimage.org
                      Don't ask support requests via chat/PM. Please use the forum so others can benefit from the solution in the future

                      L 1 Reply Last reply
                      3
                      • Pablo J. RoginaP Pablo J. Rogina

                        @LordCaca said in Problem with authentication after deployment:

                        if it's important

                        well, the idea is to confirm that the URL you're connecting to is using the HTTPS protocol.

                        And if so, it's likely you have an issue with the OpenSSL libraries not in the path in the scenario not working (when you "deploy" your application)

                        L Offline
                        L Offline
                        LordCaca
                        wrote on last edited by
                        #11

                        @Pablo-J-Rogina I solved the problem by coping some .dll files that qtdeploy didn't create. thanks for your time and help!

                        Pablo J. RoginaP 1 Reply Last reply
                        0
                        • L LordCaca

                          @Pablo-J-Rogina I solved the problem by coping some .dll files that qtdeploy didn't create. thanks for your time and help!

                          Pablo J. RoginaP Offline
                          Pablo J. RoginaP Offline
                          Pablo J. Rogina
                          wrote on last edited by
                          #12

                          @LordCaca said in Problem with authentication after deployment:

                          I solved the problem by coping some .dll files that qtdeploy didn't create

                          Great! for the sake of completeness, could you please list those files and where you placed them? Thanks.

                          Upvote the answer(s) that helped you solve the issue
                          Use "Topic Tools" button to mark your post as Solved
                          Add screenshots via postimage.org
                          Don't ask support requests via chat/PM. Please use the forum so others can benefit from the solution in the future

                          1 Reply Last reply
                          0

                          • Login

                          • Login or register to search.
                          • First post
                            Last post
                          0
                          • Categories
                          • Recent
                          • Tags
                          • Popular
                          • Users
                          • Groups
                          • Search
                          • Get Qt Extensions
                          • Unsolved