Download the PHP package grzegorz-jamroz/sf-doctrine-api-auth-bundle without Composer

On this page you can find all versions of the php package grzegorz-jamroz/sf-doctrine-api-auth-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package sf-doctrine-api-auth-bundle

Ifrost Doctrine Api Auth Bundle for Symfony

Bundle provides authorization for Symfony Doctrine Api bundle with JWT and Refresh Token

Code Coverage Code Coverage Release Version

Installation

  1. Update routing configuration in your project:

  2. Configure Doctrine to store UUIDs as binary strings

Note: It is possible to configure Doctrine to store UUIDs in different way - you can read about it here. Please note that bundle will work only with UUIDs stored as binary types.

  1. Create User entity which implements ApiUserInterface

example:

  1. Create Token entity with implements TokenInterface

example:

  1. Create config/packages/ifrost_doctrine_api_auth.yaml file and add:

  2. Generate the SSL keys source

  3. Update security configuration source

example:

  1. Important note for Apache users

Apache server will strip any Authorization header not in a valid HTTP BASIC AUTH format. Read more here To solve this problem add those rules to your VirtualHost configuration:

  1. Configure your Symfony App Databse source

  2. Clear cache:

  3. Now you can debug your routes. Run command:

you should get output:

  1. Create UserController

  2. Now you can debug your routes. Run command:

you should get output:

  1. Temporary set route users_create available to the public to make test user:

  2. Make test user:

  3. Revert config/packages/security.yaml to state before point 12:

Usage

Login / Get token

example response (if enabled return_refresh_token_in_body config parameter):

Get Refresh Token

or if config parameter cookie enabled:

example response:

Configuration

You can find default configuration here.


All versions of sf-doctrine-api-auth-bundle with dependencies

PHP Build Version
Package Version
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package grzegorz-jamroz/sf-doctrine-api-auth-bundle contains the following files

Loading the files please wait ....