Using API Keys
-
mazataza
-
Topic Author
-
Offline
-
New Member
-
Less
More
-
Posts: 3
-
Thank you received: 0
-
-
9 years 6 months ago #3962
by mazataza
I couldn't find a documentation about using API Keys?
I found only how to configure it on admin.
could you please how client should use API keys to send request?
Please Log in or Create an account to join the conversation.
Less
More
-
Posts: 3194
-
Thank you received: 441
-
-
-
mazataza
-
Topic Author
-
Offline
-
New Member
-
Less
More
-
Posts: 3
-
Thank you received: 0
-
-
9 years 6 months ago #3964
by mazataza
thanks for your quick answer
in SEO case should i put it before "get" or after?
Please Log in or Create an account to join the conversation.
Less
More
-
Posts: 3194
-
Thank you received: 441
-
-
9 years 6 months ago #3965
by admin
Unexpected question... really
Usually these requests come from another system or a client (e.g. a mobile app), so the SEO is something not relevant in these cases. Why Google should index your API urls?
And, moreover, the API key should be "reserved", so I always suggest to pass as POST param.
Let me know if you have more questions.
Please Log in or Create an account to join the conversation.
-
mazataza
-
Topic Author
-
Offline
-
New Member
-
Less
More
-
Posts: 3
-
Thank you received: 0
-
-
9 years 6 months ago #3967
by mazataza
I just asked it because i saw in your documentation the two way of sending request using none SEO URL or SEO URL
another question may out of this topic
I would like to have a mobile app (android, iOS and win) which should connect to this REST backend. but i want to allow only these apps to connect to this services. didn't want any one else to send request (to avoid DoS attack)
did you have an idea how to do it?
Please Log in or Create an account to join the conversation.
Less
More
-
Posts: 3194
-
Thank you received: 441
-
-
9 years 6 months ago - 9 years 6 months ago #3969
by admin
Yeah,
but it is only because you can use both, it depends on how your Joomla site is configured... for SEO reasons
About your question, there are two ways. The first one is to use the API key, but consider the API key is included in your app source code, and the app code could be reversed (so there is a possibility to get the API key from the app).
The second option is to use an user authentication endpoint. This means the app should first login as Joomla user, but you should use different (real) users, not a single user with credentials stored in the app code (same problem as previous solution), and this scenario is not always possible.
Kind regards,
Luigi
Last edit: 9 years 6 months ago by admin.
Please Log in or Create an account to join the conversation.
Time to create page: 0.170 seconds