定制 fiser/microservices-internal-authentication 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

fiser/microservices-internal-authentication

Composer 安装命令:

composer require fiser/microservices-internal-authentication

包简介

Symfony MicroservicesInternalAuthenticationBundle

README 文档

README

Description

The purpose of this bundle is solved the internal comunications between symfony microservices for the authentification based in solved JWT.

If you have one microservice that generate the JWT and the clients send this to another microservices, this bundle is for the communication of the another microservice with the session microservice.

This system integrates the microservices authentication with a symfony system authentication.

Configuration

Installation

The code is in packagist hosted: https://packagist.org/packages/fiser/microservices-internal-authentication

For install you can do:

composer require fiser/microservices-internal-authentication

Configuration files

Paste in your security file of symfony this:

security:
    providers:
        user_api_provider:
            id: "fiser.microservices_internal_authentication.security.user_provider"

    firewalls:
        main:
            anonymous: ~
            guard:
                authenticators:
                    - "fiser.microservices_internal_authentication.security.authenticator"
            provider: user_api_provider

    access_control:
        - { path: ^/recipes/, roles: ROLE_USER }

In your config.yml you need to define this elements for configure the bundle The config values are not necessary if you not put this are the default values:

microservices_internal_authentication:
    cookie_name: Authorization
    uri: http://nginx/session/user/decode
    token-api: secret

统计信息

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

GitHub 信息

  • Stars: 3
  • Watchers: 1
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-02-13

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固