FAForever Forums
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Login

    API access for legacy client

    Scheduled Pinned Locked Moved I need help
    13 Posts 4 Posters 734 Views
    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.
    • S Offline
      Sheikah
      last edited by

      As a note I do not believe the test server is in a functional state currently due to some changes we have been experimenting with on it.

      1 Reply Last reply Reply Quote 0
      • S Offline
        Sheikah
        last edited by

        And I believe ideally the current auth method would be depreciated but I am not sure on removal and what not. First we have to get the new method ironed out.

        1 Reply Last reply Reply Quote 0
        • AskaholicA Offline
          Askaholic
          last edited by

          You also need to make sure you’re sending it your uid as generated by the faf-uid binary in the hello command

          1 Reply Last reply Reply Quote 0
          • D Offline
            Didvul
            last edited by

            I'm sure i'm sending uid, it worked like week or two ago, but now you'll get the error in the Java client (1.4.7, for example), too.

            S 1 Reply Last reply Reply Quote 0
            • Brutus5000B Offline
              Brutus5000 FAF Server Admin
              last edited by

              But will the current working authentication method work in the future (the one that the Java client 1.4.7 uses)?

              No. It will be removed once all FAF services are migrated to the new version. This will probably take a very long time, but I wouldn't put any app to the old solution anymore just because it seems easier.

              "Nerds have a really complicated relationship with change: Change is awesome when WE'RE the ones doing it. As soon as change is coming from outside of us it becomes untrustworthy and it threatens what we think of is the familiar."
              – Benno Rice

              1 Reply Last reply Reply Quote 0
              • S Offline
                Sheikah @Didvul
                last edited by

                @didvul said in API access for legacy client:

                I'm sure i'm sending uid, it worked like week or two ago, but now you'll get the error in the Java client (1.4.7, for example), too.

                I am not sure what error you are talking about. I haven't gotten any reports about failure to login.

                1 Reply Last reply Reply Quote 0
                • D Offline
                  Didvul
                  last edited by

                  OK, understood. Thank you for your responses.

                  @brutus5000 said in API access for legacy client:

                  ... but I wouldn't put any app to the old solution anymore just because it seems easier.

                  Anyway for python client this solution would be new.

                  @sheikah said in API access for legacy client:

                  I am not sure what error you are talking about. I haven't gotten any reports about failure to login.

                  Probably because no one tried to login to the test server. (You've already told that it is not functional right now, so it was to Askaholic who had skipped your message apparently)

                  1 Reply Last reply Reply Quote 0
                  • AskaholicA Offline
                    Askaholic
                    last edited by

                    @didvul my comment was unrelated to Sheikahs. Since you haven’t posted anything specific about what you are doing we can only guess, and I wanted to mention the uid thing because it is a common mistake that people make when trying to implement authentication with our lobby server.

                    1 Reply Last reply Reply Quote 0
                    • D Offline
                      Didvul @Brutus5000
                      last edited by Didvul

                      @brutus5000 said in API access for legacy client:

                      Of course it can. We can give it it's own OAuth client id.

                      Could you give legacy client its own client_id and client_secret to access the API like the Java client 1.4.7 does?

                      1 Reply Last reply Reply Quote 0
                      • S Offline
                        Sheikah
                        last edited by

                        That is the depreciated method that will be getting removed and shouldn't be used. You would need a new oauth client to log into the new user service.

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