2017 © Pedro PelĂĄez
 

symfony-bundle jwt-session-bundle

Provide a client side session with JWT tokens

image

dorcyv/jwt-session-bundle

Provide a client side session with JWT tokens

  • Tuesday, April 17, 2018
  • by dorcyv
  • Repository
  • 1 Watchers
  • 1 Stars
  • 300 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 36 % Grown

The README.md

JwtSessionBundle

JwtSessionBundle is a PHP session replacement. Instead of use FileSystem, just use Json Web Token. Compatible with Symfony 3.4 and 4, (*1)

Motivation

The default PHP Session does not work in different servers using round robin or other algorithms. This occurs because PHP Session are saved by default in the file system., (*2)

There are implementations can save the session to REDIS or MEMCACHED, for example. But this requires to you create a new server to store this session and creates a single point of failure. To avoid this you have to create REDIS/MEMCACHED clusters., (*3)

But if you save the session into JWT Token you do not need to create a new server. Just to use., (*4)

Security information

The JWT Token cannot be changed, but it can be read. This implementation save the JWT into a client cookie. Because of this do not store in the JWT Token sensible data like passwords., (*5)

Installation

Run composer require dorcyv/jwt-session-bundle, (*6)

Set the session handler in the config/packages/framework.yaml file:, (*7)

framework:
    session:
        handler_id: Dorcyv\JwtSessionBundle\Session\JwtSessionHandler

That's it !, (*8)

The Versions

17/04 2018

dev-master

9999999-dev

Provide a client side session with JWT tokens

  Sources   Download

MIT

The Requires

 

by Valérian Dorcy

jwt symfony session

17/04 2018
05/04 2018
04/04 2018