How to authenticate users in PBwiki API?
the user that is making each request ?
I know that the APIkey should be sent, but is it the only authentication mechanism
available ?
If so, anyone who knows the apikey of a wiki can perform any operation on it ?
The more people who ask this question, the more it gets noticed.
-
Inappropriate?your apikey is just like your password... if someone knows your password they also have access to your wiki. you should treat it the same way and protect it as such.
-
But the apikey is a number associated to the wiki and shared by all users.
So it doesnt identify the user who is actually performing the operation.
Besides its easy for anyone to know the apikey because it is sent as a query string parameter. -
Inappropriate?In PBwiki 1.0, the API does let you set the user email, so assuming you're trying to edit from another server, one scheme might be:
1) Your user logs into your server and you keep track of it
2) As they do things that make use of the API, you attach their email to the request.
This presupposes that you have a separate userbase that you are trying to make interact with your wiki through the API. And I can't, off the top of my head, think of another use case where you would need to authenticate the user while not having a separate user database. Can you explain what you are trying to do?
Loading Profile...




EMPLOYEE