Download the PHP package bsadnu/grand-id-bundle without Composer
On this page you can find all versions of the php package bsadnu/grand-id-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package grand-id-bundle
Grand ID Symfony Bundle
This extension provides a number of service methods necessary for working with Grand ID API. All sessions data are stored in database.
There are so-called mock system which is helpful for testing purposes. Mock-methods do not call any Grand ID API endpoints. They just simulate sessions: create, store & update them in DB table.
Installation
Applications that use Symfony Flex
Open a command console, enter your project directory and execute:
Applications that don't use Symfony Flex
Step 1: Download the Bundle
Open a command console, enter your project directory and execute the following command to download the latest stable version of this bundle:
This command requires you to have Composer installed globally, as explained in the installation chapter of the Composer documentation.
Step 2: Enable the Bundle
Then, enable the bundle by adding it to the list of registered bundles
in the app/AppKernel.php
file of your project:
Configuration
Add the config/packages/grand_id.yaml
file consists of settings as follows:
Perform bin/console doctrine:migrations:diff
and bin/console doctrine:migrations:migrate
commands in order to create Grand ID sessions DB table.
Usage
Somewhere in your controller:
Available methods
federatedLogin(string $callbackUrl)
- performs real FederatedLogin API call. Store real session params.federatedLoginMock(string $callbackUrl, string $host, string $protocol)
- does not perform any API call. Just store mock session params.federatedDirectLogin(string $username, string $password)
- performs real FederatedDirectLogin API call. Store real session params.logout(string $sessionId)
- performs real API Logout. Update related DB record.logoutMock(string $sessionId)
- does not perform any API call. Just update certain DB record.getSession(string $sessionId)
- fetch session params by calling real API GetSession.getSessionMock(string $sessionId)
- fetch mock session params by from DB.enableMockSession(string $sessionId, string $username)
- update mock session DB record by adding username and making is_logged_in equals to true.
Acknowledgments
All versions of grand-id-bundle with dependencies
symfony/framework-bundle Version ^4.0
symfony/orm-pack Version ^1.0
guzzlehttp/guzzle Version ^6.0