Standard -server to server- and -browser to server- authentication method

Posted by jeruki on Programmers See other posts from Programmers or by jeruki
Published on 2012-11-19T16:35:31Z Indexed on 2012/11/19 17:19 UTC
Read the original article Hit count: 284

Filed under:
|
|

I have server with some resources; until now all these resources were requested through a browser by a human user, and the authentication was made with an username/password method, that generates a cookie with a token (to have the session open for some time).

Right now the system requires that other servers make GET requests to this resource server but they have to authenticate to get them. We have been using a list of authorized IPs but having two authentication methods makes the code more complex.

My questions are:

  • Is there any standard method or pattern to authenticate human users and servers using the same code?

  • If there is not, are the methods I'm using now the right ones or is there a better / more standard way to accomplish what I need?

Thanks in advance for any suggestion.

© Programmers or respective owner

Related posts about rest

Related posts about standards