What techniques can be used to authenticate to REST applications? [closed]

1

I'm developing a Restful application with PHP , I need to make an authentication mechanic on that system so that client applications can consume their data.

What techniques can be used to authenticate to Restful ?

    
asked by anonymous 25.05.2016 / 17:18

1 answer

1

I recommend that you use OAuth 2.0 to allow users access through tokens and ensure greater security for your user because they will not always have to enter the user and password as in Basic Authentication, it will make life easier for you when creating applications mobile, as well as being the standard used by major brands such as Google, Facebook and PayPal.

In addition to these two methods (OAuth2 and Basic Authentication), you can check the Digest method which in my opinion at security level is between Basic (which as the name says is basic) and OAuth2.

I also recommend using the security layer over SSL regardless of your choice.

Official OAuth2 site with implementation examples: link

    
26.05.2016 / 02:35