•  · 2 friends

where is the oauth2 server public key storage

Hello!

I am using an API script to make some additional api calls on top of your oauth2 server. The script needs the public key of the auth server for its own authentication. I looked around in the folder but cannot find such a file? Will you guys please point me in the right direction?

Many thanks!  

0 0 0 0 0 0
  • 97
Replies (7)
  • Hello mofas !

    You need to check this link https://github.com/unaio/una/wiki/Dev-API as common manual and this one 

    as one of the examples.

    0 0 0 0 0 0
    • Thanks, Leonid.

      I can set up UNA's own oAuth2 module just fine, although I did bother you about that a few times before. This is another 3rd party API script that provides many more endpoints. In order to authenticate these API calls, the script needs the public key that it shares with the auth server to verify the signature. That's why I was asking about that. I also looked up and down in the source files. Should I generate it myself? Sorry if this sounds stupid. This just happens to be the easiest way to do auth.

      Many thanks as always!

      0 0 0 0 0 0
      • It seems you need to check first the `bx_oauth_access_tokens`, `bx_oauth_authorization_codes` and `bx_oauth_clients` tables and check all service methods from modules/boonex/oauth/BxOAuthModule.php file

        0 0 0 0 0 0
        • **puking blood**💀 

          guess I'll have to take the harder road?

          0 0 0 0 0 0
          • To access UNA API using UNA build-in OAuth2 server (as additional module) you need to generate key&secret in Studio > OAuth2 > Add new client

            Further instructions and documentations are here - https://github.com/unaio/una/wiki/Dev-API

            0 0 0 0 0 0
            • Hi Alex T⚜️ 

              I am using the oauth2 module and it is working great. Somehow my app needs to make some additional API calls and I am using a third-party php script to do that. This php script needs the public key to verify the token my user sends (obtained from your auth module) for authentication purposes. Does it make sense? That's why I was asking for that.

              Do you have any better suggestions though?

              Thank you!!!

              0 0 0 0 0 0
              • I am using the oauth2 module and it is working great. Somehow my app needs to make some additional API calls and I am using a third-party php script to do that. This php script needs the public key to verify the token my user sends (obtained from your auth module) for authentication purposes. Does it make sense? That's why I was asking for that.

                Please clarify what do you mean by "key" ? is it different "key" which I mentioned before ?

                0 0 0 0 0 0
                Not logged in users can't 'Comments Post'.
                4
                2
                2
                Added:
                Category:

                UNA - Social Media Software Framework

                Close