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. Application logic and best authentication methods with PHP server side.

Application logic and best authentication methods with PHP server side.

Scheduled Pinned Locked Moved Unsolved General and Desktop
authenticationphp
4 Posts 2 Posters 1.6k Views
  • 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.
  • G Offline
    G Offline
    gollum
    wrote on 19 Jun 2016, 16:59 last edited by
    #1

    Hi Guys,

    I am writing a small desktop application which proceeds some system commands and communicates with a PHP serverside script running on a normal shared webhost. I also need to transfer quit big files into both directions. like around 100mb of size.

    I first startet the programming with a RESTful approach with oauth2 bearer type authentication and a simple REST api on the server. I am using pipacs o2 at the moment for the auth. One important thing for me was that the app should use quite common ports and protocols because the network where I want to use it is quite restricted in this.

    The deeper I go into the topic I am thinking that there is maybe a more secure and more simple way of authentication between the server and my desktop app. I do not really like the oauth2 style . Also the communication could be more easy. I thought about websockets which for me seems like a more closed mechanism. But I think i can not transfer files with it.

    Can someone of you with more experience give me a hint what would be a better or good way to solve my needs?

    K 1 Reply Last reply 19 Jun 2016, 19:29
    0
    • G gollum
      19 Jun 2016, 16:59

      Hi Guys,

      I am writing a small desktop application which proceeds some system commands and communicates with a PHP serverside script running on a normal shared webhost. I also need to transfer quit big files into both directions. like around 100mb of size.

      I first startet the programming with a RESTful approach with oauth2 bearer type authentication and a simple REST api on the server. I am using pipacs o2 at the moment for the auth. One important thing for me was that the app should use quite common ports and protocols because the network where I want to use it is quite restricted in this.

      The deeper I go into the topic I am thinking that there is maybe a more secure and more simple way of authentication between the server and my desktop app. I do not really like the oauth2 style . Also the communication could be more easy. I thought about websockets which for me seems like a more closed mechanism. But I think i can not transfer files with it.

      Can someone of you with more experience give me a hint what would be a better or good way to solve my needs?

      K Offline
      K Offline
      kshegunov
      Moderators
      wrote on 19 Jun 2016, 19:29 last edited by
      #2

      @gollum
      If I understand you correctly, you don't need to have anything in common between your desktop application and oauth2. The "client" for oauth2 is your PHP server application, or am I misunderstanding something?

      Read and abide by the Qt Code of Conduct

      1 Reply Last reply
      0
      • G Offline
        G Offline
        gollum
        wrote on 19 Jun 2016, 19:38 last edited by
        #3

        The server is managing the main logic and providing tasks to the client desktop app. Which than does the job and provides back an image for example. The desktop app is more like a worker which works autonomously after starting and authenticating.
        I could use cookies as well which might make things easier. The Server at the moment is a small php slim framework rest api. Since the api is not meant for many different client apps it maybe dont needs a strict REST paradigm or similar.

        Its more like a get job request from the client and providing resulting data files to the server.

        K 1 Reply Last reply 21 Jun 2016, 22:29
        0
        • G gollum
          19 Jun 2016, 19:38

          The server is managing the main logic and providing tasks to the client desktop app. Which than does the job and provides back an image for example. The desktop app is more like a worker which works autonomously after starting and authenticating.
          I could use cookies as well which might make things easier. The Server at the moment is a small php slim framework rest api. Since the api is not meant for many different client apps it maybe dont needs a strict REST paradigm or similar.

          Its more like a get job request from the client and providing resulting data files to the server.

          K Offline
          K Offline
          kshegunov
          Moderators
          wrote on 21 Jun 2016, 22:29 last edited by
          #4

          @gollum
          Sorry I still don't understand who's authenticating where and how is oauth2 involved in all this.

          I could use cookies as well which might make things easier.

          I would think you not only could, but rather need to use cookies. How else will you distinguish between clients connected to you PHP service?

          Read and abide by the Qt Code of Conduct

          1 Reply Last reply
          0

          1/4

          19 Jun 2016, 16:59

          • Login

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