Skip to content

Synchronize users between Firebase and Winter.Users

License

Notifications You must be signed in to change notification settings

Dheia/wn-firebaseusers-plugin

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Firebase for WinterCMS

Synchronize users between Firebase and Winter.Users.

Installation

First install the plugin with composer:

composer require norotaro/wn-firebaseusers-plugin

Then run the migration files with:

php artisan winter:up

Usage

After configure Firebase Plugin you can run the following command for synchronize user:

php artisan firebaseusers:sync

Protect endpoints

You can use the AuthenticationControl middleware for protect an endpoint, this middleware expect a valid bearer token that is verified against Firebase.

<?php
Route::middleware([\Norotaro\FirebaseUsers\Middlewares\AuthenticationControl::class])
    ->group(function () {
    // All routes here will require a valid Firebase bearer token
});

Users table modifications

This plugin adds fb_uid and fb_sync columns on users table, and also change the definition of the email column to allow null values and remove the unique restriction.

Suport

License

FirebaseUsers for WinterCMS is licensed under the MIT License.

Your use of Firebase is governed by the Terms of Service for Firebase Services.

About

Synchronize users between Firebase and Winter.Users

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 100.0%