Download the PHP package intracto/fas-open-id-bundle without Composer
On this page you can find all versions of the php package intracto/fas-open-id-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download intracto/fas-open-id-bundle
More information about intracto/fas-open-id-bundle
Files in intracto/fas-open-id-bundle
Package fas-open-id-bundle
Short Description Bundle that makes it easy to authenticate using Fas Open Id
License MIT
Informations about the package fas-open-id-bundle
Intracto Fas OpenId bundle
With this bundle, users of your application will be able to login into the application using FAS (Federal Authentication Service) using OpenId.
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 config/bundles.php
file of your project:
Step 3: register bundle routing
Load the bundle's routing inside your application
Step 4: Configuration
Bundle configuration
(If not done by Flex, create a intracto_fas_open_id.yaml file in your config/packages folder).
Config parameters needed to get this bundle working:
client_id
: the client ID of your registered applicationclient_secret
: the client secret of your registerd applicationscope
: list of scopes that will be used by this application. Possible values are profile, egovnrn, certificateInfo, citizen, enterprise and roles. The role openid will automatically be usedauth_path
: the route name where theFasOpenIdAuthenticator
will check to authenticate the user. The default value for this parameter isintracto_fas_open_id.auth
target_path
: the route name where the user will be redirected to on successful authenticationlogin_path
: the route name where the user will be redirected to when he has to loginuser_class
: FQN of your user class, this is optional. Make sure your user extends the User class of this bundle
Firewall configuration
Then, you have to tell the firewall(s) of your application which authentictor should be used. Under the guard parameter of your firewall(s), you have to append the intracto.fas_open_id.authenticator
to the authenticators parameter.
If you want to log out from FAS, add the intracto.fas_open_id.logout_handler
to your firewall logout handlers.
All versions of fas-open-id-bundle with dependencies
ext-json Version *
doctrine/doctrine-bundle Version ^1.12.13 || ^2.0
phpseclib/phpseclib Version ^2.0
symfony/framework-bundle Version ^5.4
symfony/http-client Version ^5.4
symfony/security-bundle Version ^5.4
symfony/monolog-bundle Version ^3.3