2017 © Pedro Peláez
 

project flock

Symfony user storage system with oauth2 support

image

andythorne/flock

Symfony user storage system with oauth2 support

  • Saturday, January 27, 2018
  • by andythorne
  • Repository
  • 1 Watchers
  • 2 Stars
  • 4 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Flock User Store

Packagist, (*1)

Storage system for users with oauth2 support, written in Symfony >= 3.4/4.0 with FOSOAuth, FOSUser and EasyAdmin., (*2)

Installation

Flock is a Symfony project, not a bundle. To install it, create a new project with composer:, (*3)

composer create-project andythorne/flock flock
cd flock

With the incoming release of Symfony Flex, this will be moved to a pack rather than a project., (*4)

Running With Docker

Flock comes with an example Docker container setup using: - richarvey/nginx-php-fpm - mariadb10, (*5)

To get started, run:, (*6)

docker-compose up -d

Docker will expose the app over the external network flock, which your can link to., (*7)

Usage

Public Endpoints

Flock uses the standard FOSUser endpoints for user registration, login and profile management., (*8)

See https://symfony.com/doc/master/bundles/FOSUserBundle/index.html for documentation for extending flock's FOSUser implementation, (*9)

Administration

Flock uses EasyAdmin to provide an admin interface for managing users and OAuth clients. Create a super admin user (./bin/console fos:user:create <username> <email> <password> --super-admin) and head to /admin., (*10)

OAuth2

In order to use OAuth2, you first need to create an OAuth Client. Head to /admin and create a new Client, and copy the generated public id and secret into your app's OAuth Client., (*11)

Endpoint Description
/oauth/v2/token Token
/oauth/v2/auth Authentication
/api/user User Data

For a guide on how to use HWIOAuthBundle in your app to authenticate with flock, see, (*12)

Authors

Written by: - Andy Thorne, (*13)

The Versions