php - Decouple user information and authentication information in Symfony -


first off, new symfony, don't know exact functionality of bundles fosuserbundle etc., terminology.


i looking way use symfony security component in way enables me decouple user's login credentials (say, login name , password, maybe roles) actual user meta data (like first name, last name, groups, birth date, etc.).

the idea user can login different sets of login name/password , still recognized same user (in end means, getting same user object).

to me, comes handy in combination multiple authentication providers. example, if wanted enable users login via oauth2 service as alternative logging in locally-hosted login name/password-combination (like stackexchange does, instance), how that?


i have read multiple pages of documentation of symfony, e.g.:

this latter 1 says @ 1) create user entity, password field of user.

i have created that, first named classes usercredentials , userditails , because of confusion of getuser function decided rename usercredentials user. agree alex blex relation (manytoone on user side). when decouple login , metadata need learn how embed forms or creating own form models, working on , might need implement callback functions deleting , updating entities. more work on userbundle, more looks fosuserbundle. there quite bit of work of designing work it's great learning. if wish inspect how fosuserbundle works, after install it, can find in vendor/friendsofsymfony folder, might provide few answers.


Comments

Popular posts from this blog

php - Permission denied. Laravel linux server -

google bigquery - Delta between query execution time and Java query call to finish -

python - Pandas two dataframes multiplication? -