Download the PHP package fatigba/symfony-social-login-bundle without Composer

On this page you can find all versions of the php package fatigba/symfony-social-login-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package symfony-social-login-bundle

Comment utiliser ce bundle

Installation

Configuration des bundles

Dans votre fichier de configuration config/bundles.php, ajouter les entrées suivantes:

Configuration des fournisseurs OAuth2

Créer le fichier config/packages/knpu_oauth2_client.yaml s'il n'existe pas.
Ajoutez y ensuite les lignes suivantes:

Le cas de Google

Pour configurer le client OAuht2 de Google, veuillez ajouter ce qui suit dans votre fichier de configuration,

Vous obtiendrez des valeurs pour client_id et client_secret en créant un ID client OAuth.
Console Google --> API et Services --> Identifiants --> Créer des identifiants --> ID client OAuth

Injection de dépendances et découverte de services

Il s'agit de donner, impérativement un alias aux guards et de permettre l'injection de dépendances dans les controlleurs du bundles

config/services.yaml

Ensuite pour activer la détection des routes du controlleur, il faut activer la détection des routes dans routes/annotations.yaml:

Configuration de la sécurité

Les guard

La recherche de l'utilisateur symfony se fait sur l'email en utilisant FOSUser. Les classes de guard sont:

En cas d'échec on est rediriger vers l'url /login

Le fichier security.yaml

Dans le firewall adéquats, ajoutez les guards dont vous avez besoin:

Ajouter les controles d'accès suivants:

Les controlleurs de connexion

Le cas de Google (JFk\SocialLogin\Google\Controller)

Ce controlleur contient deux routes:

Cette route fait une redirection vers la page d'authentification de google.

C'est la route vers laquelle il faut faire la redirection après l'authentification de google.
Elle se charge de connecter l'utilisateur symfony et de le rediriger vers la route homepage.


All versions of symfony-social-login-bundle with dependencies

PHP Build Version
Package Version
Requires php Version ^7.1.3
knpuniversity/oauth2-client-bundle Version ^2.9
league/oauth2-google Version ^4.0
symfony/framework-bundle Version 4.4.*
friendsofsymfony/user-bundle Version ^2.1
doctrine/doctrine-bundle Version ^2
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package fatigba/symfony-social-login-bundle contains the following files

Loading the files please wait ....