定制 micayael/autheticator-client-bundle 二次开发

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

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

micayael/autheticator-client-bundle

Composer 安装命令:

composer require micayael/autheticator-client-bundle

包简介

Cliente para Authenticator

关键字:

README 文档

README

Instalación del bundle

Agregar al composer.json

    "require": {
        ...
        "micayael/autheticator-client-bundle": "^1.0.0"
    },

Activación del bundle en el AppKernel.php

        $bundles = [
            ...
            new Csa\Bundle\GuzzleBundle\CsaGuzzleBundle(),
            new Micayael\Authenticator\ClientBundle\AuthenticatorClientBundle(),
            ...
        ];

Configuración del guzzle para consultar el servicio del authenticator

csa_guzzle:
    profiler: '%kernel.debug%'
    logger: true
    clients:
        authenticator:
            config:
                base_uri: http://localhost:8001
                headers:
                    "Content-Type": application/json

Configuración del bundle

Para ver la documentación de las configuraciones: bin/console config:dump-reference authenticator_client

authenticator_client:
    host: http://IP:PORT
    token_uri: /api/jwt/token # opcional
    default_target_route: admin # opcional, default: admin
    change_password_url: http://authenticator_url/admin/resetting/request
    type: basic_auth
    basic_auth:
        username: app1
        password: app1

o

authenticator_client:
    host: http://IP:PORT
    change_password_url: http://authenticator_url/admin/resetting/request
    type: app_id
    app_id: app2_id_test

Publicación de assets

bin/console assets:install --relative --symlink

Importación de rutas en el archivo routing.yml

authenticator:
    resource: "@AuthenticatorClientBundle/Resources/config/routing.yml"
    prefix: /

Configuración del security

    providers:
        authenticator:
            id: 'authenticator_client.authenticator_user_provider'

    encoders:
        AppBundle\Security\User\AuthenticatorUser: plaintext

    firewalls:
        main:
            anonymous: ~
            logout:
                path: /logout

            guard:
                authenticators:
                    - 'authenticator_client.login_form_authenticator'

    access_control:
        - { path: ^/login, roles: IS_AUTHENTICATED_ANONYMOUSLY }
        - { path: ^/admin, roles: ROLE_USER }

Documentación Extra

Referencias

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2017-11-22

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固