2017 © Pedro Peláez
 

bundle authentication-bundle

The Authentication Bundle

image

rybakdigital/authentication-bundle

The Authentication Bundle

  • Tuesday, June 6, 2017
  • by kris.rybak
  • Repository
  • 1 Watchers
  • 0 Stars
  • 1,552 Installations
  • PHP
  • 2 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 2 Versions
  • 2 % Grown

The README.md

Authentication Bundle

Build Status CircleCI, (*1)

Installation

Add dependancy to your composer, (*2)

composer require rybakdigital/authentication-bundle:^1.0

Configuration

Add rybakdigital/authetication services to the list of imported services, (*3)

# services.yml
imports:
    ...
    - { resource: "@RybakDigitalAuthenticationBundle/Resources/config/services.yml" }

Configure your security policy:, (*4)

# security.yml
...
    guard:
        authenticators:
            # Add app token authenticator if you need to use one
            - rybakdigital.authentication.api.app_token.header_authenticator
            # Add user token authenticator if you need to use one
            - rybakdigital.authentication.api.app_user_token.header_authenticator

AppToken vs UserToken

AppToken

Use app token to authenticate applications. Your user provider must implement AppTokenAuthorizableInterface. Authenticator will attempt calling getApiKey() method in order to authenticate application., (*5)

UserToken

Use app token to authenticate specific user. Your user provider must implement AppUserInterface. Authenticator will attempt calling loadApiAppByName($name) method in order to get user by $name providate. Notice that app name becomes user name in this instance., (*6)

The Versions

06/06 2017

dev-master

9999999-dev

The Authentication Bundle

  Sources   Download

MIT

The Requires

 

The Development Requires

by Kris Rybak

api authentication acl symfony3

02/11 2016

v1.0.0

1.0.0.0

The Authentication Bundle

  Sources   Download

MIT

The Requires

 

by Kris Rybak

api authentication acl symfony3