承接 youshido/token-authenticator 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

youshido/token-authenticator

最新稳定版本:1.1.1

Composer 安装命令:

composer require youshido/token-authenticator

包简介

Symfony bundle to allow you token based authentication

README 文档

README

This bundle allow you to use a token authentication mechanism similar to OAuth but much more simplified.

Installation

First, enable bundle in your AppKernel by adding it to the registerBundles method:

...
            new Youshido\TokenAuthenticationBundle\TokenAuthenticationBundle(),

Then create provider and firewall under app/config/security.yml (if you don't have encoder yet – might as well add it here):

security:
    providers:
        api_user_provider:
            id: token_user_provider

    encoders:
        AppBundle\Entity\User: md5

    firewalls:
        api_firewall:
            pattern: ^/.*
            stateless: true
            simple_preauth:
                authenticator: token_authenticator
            provider: api_user_provider
            anonymous: ~

Now add your model class name to the service declaration app/config/config.yml:

token_authentication:
    user_model: "AppBundle\\Entity\\User"

统计信息

  • 总下载量: 9.21k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 3
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2016-02-03

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固