php - Symfony2 - Authentication login..... service -


i had application (running on prod) while. thing new project application need add couple of rest services authenticated users. security handled sf2 (doctrine2 user provider). pretty standard stuff.

so been thinking creating new entity token field (randomly created) , user. (since sessions needed persist). , on new controller provide rest responses (json) add token param, adding 1 take user/password , return new token.

that's idea, maybe there better way of doing so, more standard or kind of provider. suggestions welcome

implement webservice fosrestbundle under dedicated route (ex /api) , secure fosoauthserverbundle.


Comments

Popular posts from this blog

java - Jmockit String final length method mocking Issue -

asp.net - Razor Page Hosted on IIS 6 Fails Every Morning -

c++ - wxwidget compiling on windows command prompt -