dev-master
9999999-dev https://github.com/Ivan1986/LoginzaBundleThis bundle integrate Loginza
MIT
The Requires
- php >=5.3.2
- symfony/framework-bundle ~2.0
authentication security loginza
This bundle integrate Loginza
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)
This bundle integrate Loginza
MIT
authentication security loginza