rfy/jwt

Last activity 16 days ago
  • 2
  • 58
composer require rfy/jwt

A JWT authentication provider based on Firebase JWT package

dev-master

A JWT authentication provider based on Firebase JWT package

Version
dev-master
Type
neos-package
Release Date
06.04.2021 11:19:48
Source
git
Distribution
zip
Requires
Requires (dev)
Suggest
None
Provides
None
Conflicts
None
Replaces
None
MIT 08bb54edbc432c6c69bc454d108a6c5cf92934ee

RFY.JWT

Code Climate Test Coverage Build Status

This package is meant to make a TOKEN authentication possible for any request authentication attempt.

The possible responses are:

  • AuthenticationSuccessfull which returns the authentication JWT token
  • AuthenticationFailure which returns a message with the corresponding error code

Getting started

To start using this package you will need to follow the following steps:

Include this package into your Neos Flow application by running:

composer require rfy/jwt

Add the below YAML to the projects Configuration/Routes.yaml:

-
  name: 'Token'
  uriPattern: '<TokenSubroutes>'
  defaults:
    '@format': 'json'
  subRoutes:
    TokenSubroutes:
      package: RFY.JWT

By default the security features are enabled in this package by these settings:

Neos:
  Flow:
    security:
      authentication:
        providers:
          'BackendProvider':
            provider: 'RFY\JWT\Security\Authentication\Provider\PersistedApiTokenProvider'
            token: 'RFY\JWT\Security\Authentication\Token\ApiToken'
            entryPoint: 'HttpBasic'

You of course overwrite these settings based on your wishes.

References:

This implementation requires the Firebase JWT package.

Authors:

Author: Sebastiaan van Parijs (svparijs@rfy.io)

Feedback & Reviews:

Reviewer: Bastian Waidelich

License

The MIT License (MIT). Please see License File for more information.

The content of the readme is provided by Github