2017 © Pedro Peláez
 

symfony-bundle loginza-bundle

This bundle integrate Loginza

image

ivan1986/loginza-bundle

This bundle integrate Loginza

  • Thursday, May 22, 2014
  • by ivan1986
  • Repository
  • 0 Watchers
  • 1 Stars
  • 9 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 4 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

README

This bundle is rewrited Zim32LoginzaBundle. https://github.com/zim32/Loginza-for-Symfony-2, (*1)

1) install - standart by composer, (*2)

"ivan1986/loginza-bundle": "dev-master",

new Ivan1986\LoginzaBundle\Ivan1986LoginzaBundle(),

2) Configure /app/config/security.yml, (*3)

providers:
  loginza:
    id: <id for you user provider>

firewalls:
  <name>:
    pattern:  ^/
    loginza:
      provider: loginza
      check_path: <>
      <all form options>

3) Create form for loginza whis token_url={{check_path|url_encode}}, (*4)

{% extends "::base.html.twig" %}

{% block body %}
    <script src="//loginza.ru/js/widget.js" type="text/javascript"></script>
    <a href="https://loginza.ru/api/widget?token_url={{check_path|url_encode}}" class="loginza">Please login</a>
{% endblock %}

4) Create user provider - it must implements LoginzaUserProviderInterface ( extends LoginzaUserProvider for example) and implements, (*5)

public function loadUserByIdentityAndProvider($identity, $provider, $loginza_info)

User has ROLE_LOGINZA_USER role after authentication, (*6)

The Versions

22/05 2014

dev-master

9999999-dev https://github.com/Ivan1986/LoginzaBundle

This bundle integrate Loginza

  Sources   Download

MIT

The Requires

 

authentication security loginza