2017 © Pedro Peláez
 

library simple-api-key-bundle

Creates an avenue for using ApiKey app authentication for Symfony2 without user authentication

image

mkosiedowski/simple-api-key-bundle

Creates an avenue for using ApiKey app authentication for Symfony2 without user authentication

  • Wednesday, February 14, 2018
  • by mkosiedowski
  • Repository
  • 1 Watchers
  • 0 Stars
  • 1,931 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 12 % Grown

The README.md

SimpleApiKey Bundle

Creates a firewall for using ApiKey application authentication for Symfony2., (*1)

This bundle is highly based on uecode/api-key-bundle, (*2)

Installation

Requires composer, install as follows, (*3)

composer require mkosiedowski/simple-api-key-bundle dev-master

Enable Bundle

Place in your AppKernel.php to enable the bundle, (*4)

<?php
// app/AppKernel.php

public function registerBundles()
{
    $bundles = array(
        // ...
        new mkosiedowski\SimpleApiKeyBundle\SimpleApiKeyBundle(),
    );
}

Configuration

You can change how the API key should be delivered and the name of the parameter its sent as. By default, this bundle looks for apiKey in the query string., (*5)

simple_api_key:
    delivery: query #or header
    parameter_name: some_value # defaults to `api_key`

Applications repository

Applications are stored in applicationKeys table by default., (*6)

You should register Doctrine Entities mapping with your doctrine configuration:, (*7)

doctrine:
    orm:
        entity_managers:
            default:
                mappings:
                    SimpleApiKeyBundle:
                        type: annotation
                        dir: Entity
                        is_bundle: true

Change security settings

You can now add simple_api_key: true to any of your firewalls., (*8)

For Example:, (*9)

security:
    firewalls:
        auth:
            pattern: ^/api/*
            simple_api_key: true
            stateless: true

The Versions

14/02 2018

dev-master

9999999-dev

Creates an avenue for using ApiKey app authentication for Symfony2 without user authentication

  Sources   Download

Apache-2.0 Apache 2.0

The Requires

 

by Maciej Kosiedowski

06/07 2017

dev-develop

dev-develop

Creates an avenue for using ApiKey app authentication for Symfony2 without user authentication

  Sources   Download

Apache 2.0

The Requires

 

by Maciej Kosiedowski

06/07 2017

0.0.2

0.0.2.0

Creates an avenue for using ApiKey app authentication for Symfony2 without user authentication

  Sources   Download

Apache 2.0

The Requires

 

by Maciej Kosiedowski

24/04 2017

0.0.1

0.0.1.0

Creates an avenue for using ApiKey app authentication for Symfony2 without user authentication

  Sources   Download

Apache 2.0

The Requires

 

by Maciej Kosiedowski