Authentication for a Symfony2 api (for mobile app use)

后端 未结 3 1874
遇见更好的自我
遇见更好的自我 2020-12-24 13:38

I\'ve developed a REST api for my Symfony2 application. This api will be used by a mobile app. Much of the functionality is done in the context of the currently authenticate

3条回答
  •  一个人的身影
    2020-12-24 14:09

    Yes Marc, jules is pointing to an example just to show you how to test authentication with http_basic.

    To be RESTful you should avoid using cookies, otherwise just call it an API. About how secure is your authentication system you can go with http_digest over https or more secure signed request with api_key/api_secret approach.

    Have a look here http://wiki.zanox.com/en/RESTful_API_authentication

提交回复
热议问题