定制 flownative/token-authentication 二次开发

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

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

flownative/token-authentication

最新稳定版本:v2.4.0

Composer 安装命令:

composer require flownative/token-authentication

包简介

General purpose token authentication.

README 文档

README

This package provides token based authentication for Neos Flow projects. It allows both sessionless and session-based authentication to be used.

Installation

Run:

composer require flownative/token-authentication 

Usage

Run:

./flow hashtoken:createhashtoken --roleNames Neos.Neos:Editor 

Provide the token in your requests

  • as request argument _authenticationHashToken=<myToken> or
  • as Authorization header with the value Bearer <myToken>.

Configuration

The configuration is done as usual in the Configuration/Settings.yaml file.

Neos: Flow: security: authentication: providers: 'Acme.Com:TokenAuthenticator': provider: Flownative\TokenAuthentication\Security\HashTokenProvider requestPatterns: 'Acme.Com:Controllers': pattern: ControllerObjectName patternOptions: controllerObjectNamePattern: 'Acme\Com\Controller\.*'

By default the package uses a sessionless token. If you want to use a session-based token, set the token option in the provider configuration:

providers: 'Acme.Com:TokenAuthenticator': provider: Flownative\TokenAuthentication\Security\HashTokenProvider token: Flownative\TokenAuthentication\Security\SessionStartingHashToken

统计信息

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

GitHub 信息

  • Stars: 7
  • Watchers: 2
  • Forks: 10
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-01-04

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固