2017 © Pedro PelĂĄez
 

symfony-bundle franceconnect-bundle

Symfony4 OpenID security extension franceconnect

image

kleegroup/franceconnect-bundle

Symfony4 OpenID security extension franceconnect

  • Friday, May 25, 2018
  • by t-veron
  • Repository
  • 11 Watchers
  • 6 Stars
  • 221 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 8 Versions
  • 36 % Grown

The README.md

FranceConnect-Symfony

Latest Stable Version Total Downloads License, (*1)

Synopsis

Symfony bundle for FranceConnect authentication., (*2)

Dependencies

Installation

All the installation instructions are located in documentation. The installation is in two steps: * Add FranceConnectBundle to composer.json * Configure FranceConnectBundle, (*3)

Usage

  1. Add a link to the route " france_connect_login " in your template twig, (*4)

         <a href="{{ path('france_connect_login') }}" class="btnLink">
            <img src="{{ asset('bundles/franceconnect/images/FCboutons-10.png') }}"
                alt="FranceConnect button"/>
        </a>
    
  2. Add a controller that will handle the response, (*5)

       /**
        * @param Request $request
        * @Route("/france-connect-traitement", name="app.fc.return")
        * @Security("is_granted('IS_AUTHENTICATED_FRANCE_CONNECT')")
        */
       public function franceConnectAction(Request $request)
       {
           $token = $this->get('security.token_storage')->getToken();
           $token->getIdentity(); // json array provided by FranceConnect 
           [...]
       }
    
  3. Add FranceConnect script in your template, (*6)

        {% block javascripts %}
            <script src="http://fcp.integ01.dev-franceconnect.fr/js/franceconnect.js"></script>
        {% endblock %}
    
  4. Add FranceConnect block in your template, (*7)

        <div id="fconnect-profile" data-fc-logout-url="{{ url('france_connect_logout') }}">
            <a href="#">
                {{- identity.givenName ~ ' ' ~ identity.familyName|upper -}}
            </a>
        </div>
    

License

This bundle is under the MIT license., (*8)

The Versions

25/05 2018

dev-master

9999999-dev https://github.com/KleeGroup/FranceConnect-Symfony

Symfony4 OpenID security extension franceconnect

  Sources   Download

MIT

The Requires

 

The Development Requires

authentication security openid

25/05 2018

0.7

0.7.0.0 https://github.com/KleeGroup/FranceConnect-Symfony

Symfony4 OpenID security extension franceconnect

  Sources   Download

MIT

The Requires

 

The Development Requires

authentication security openid

25/08 2017

0.6

0.6.0.0 https://github.com/KleeGroup/FranceConnect-Symfony

Symfony3 OpenID security extension franceconnect

  Sources   Download

MIT

The Requires

 

The Development Requires

authentication security openid

12/12 2016

0.5

0.5.0.0 https://github.com/KleeGroup/FranceConnect-Symfony

Symfony3 OpenID security extension franceconnect

  Sources   Download

MIT

The Requires

 

The Development Requires

authentication security openid

09/12 2016

0.4

0.4.0.0 https://github.com/KleeGroup/FranceConnect-Symfony

Symfony3 OpenID security extension franceconnect

  Sources   Download

MIT

The Requires

 

The Development Requires

authentication security openid

18/11 2016

0.3

0.3.0.0 https://github.com/KleeGroup/FranceConnect-Symfony

Symfony3 OpenID security extension franceconnect

  Sources   Download

MIT

The Requires

 

The Development Requires

authentication security openid

24/08 2016

0.2

0.2.0.0 https://github.com/KleeGroup/FranceConnect-Symfony

Symfony3 OpenID security extension franceconnect

  Sources   Download

MIT

The Requires

 

The Development Requires

authentication security openid

18/08 2016

0.1

0.1.0.0 https://github.com/KleeGroup/FranceConnect-Symfony

Symfony3 OpenID security extension franceconnect

  Sources   Download

MIT

The Requires

 

The Development Requires

authentication security openid