dp815292 2017-08-23 10:26
浏览 42

如何使用带有angular2的Symfony2 Fos用户软件包

security.xml

<routes xmlns="http://symfony.com/schema/routing"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://symfony.com/schema/routing http://symfony.com/schema/routing/routing-1.0.xsd">

<route id="fos_user_security_login" path="/login" methods="GET POST">
    <default key="_controller">FOSUserBundle:Security:login</default>
</route>

<route id="fos_user_security_check" path="/login_check" methods="POST">
    <default key="_controller">FOSUserBundle:Security:check</default>
</route>

<route id="fos_user_security_logout" path="/logout" methods="GET POST">
    <default key="_controller">FOSUserBundle:Security:logout</default>
</route>

  • i have build seperate app angular2 (front end) an symfony(backedn service provider).

  • can some one help how can take help from any of symfony2 security bundle which may acts as service to authenticate users.

here i have found link which is about laravel https://medium.com/@petehouston/develop-a-simple-api-authentication-service-with-json-web-token-using-laravel-angularjs-and-240135855ef1

can some advice for authentication i also need to create webs service or i should use any of symfony security bundle.

any suggestion is most welcome.

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 一直显示正在等待HID—ISP
    • ¥15 Python turtle 画图
    • ¥15 关于大棚监测的pcb板设计
    • ¥15 stm32开发clion时遇到的编译问题
    • ¥15 lna设计 源简并电感型共源放大器
    • ¥15 如何用Labview在myRIO上做LCD显示?(语言-开发语言)
    • ¥15 Vue3地图和异步函数使用
    • ¥15 C++ yoloV5改写遇到的问题
    • ¥20 win11修改中文用户名路径
    • ¥15 win2012磁盘空间不足,c盘正常,d盘无法写入