{"id":19081501,"url":"https://github.com/intracto/fas-open-id-bundle","last_synced_at":"2025-08-19T10:23:31.810Z","repository":{"id":50153807,"uuid":"190715012","full_name":"Intracto/fas-open-id-bundle","owner":"Intracto","description":null,"archived":false,"fork":false,"pushed_at":"2022-10-25T12:56:25.000Z","size":46,"stargazers_count":1,"open_issues_count":5,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-03T07:22:39.439Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Intracto.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"Security/Authentication/Token/FasOpenIdUserToken.php","support":null}},"created_at":"2019-06-07T08:57:03.000Z","updated_at":"2022-02-24T09:57:00.000Z","dependencies_parsed_at":"2022-08-25T10:40:47.238Z","dependency_job_id":null,"html_url":"https://github.com/Intracto/fas-open-id-bundle","commit_stats":null,"previous_names":[],"tags_count":15,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Intracto%2Ffas-open-id-bundle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Intracto%2Ffas-open-id-bundle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Intracto%2Ffas-open-id-bundle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Intracto%2Ffas-open-id-bundle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Intracto","download_url":"https://codeload.github.com/Intracto/fas-open-id-bundle/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240131746,"owners_count":19752727,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-09T02:36:35.452Z","updated_at":"2025-02-22T06:13:41.981Z","avatar_url":"https://github.com/Intracto.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"Intracto Fas OpenId bundle\n==========================\nWith this bundle, users of your application will be able to login into the application using FAS (Federal Authentication Service) using OpenId.\n\nInstallation\n============\nApplications that use Symfony Flex\n----------------------------------\nOpen a command console, enter your project directory and execute:\n\n```console\n$ composer require intracto/fas-open-id-bundle\n```\n\nApplications that don't use Symfony Flex\n----------------------------------------\n\n### Step 1: Download the Bundle\n\nOpen a command console, enter your project directory and execute the\nfollowing command to download the latest stable version of this bundle:\n\n```console\n$ composer require intracto/fas-open-id-bundle\n```\n\nThis command requires you to have Composer installed globally, as explained\nin the [installation chapter](https://getcomposer.org/doc/00-intro.md)\nof the Composer documentation.\n\n### Step 2: Enable the Bundle\n\nThen, enable the bundle by adding it to the list of registered bundles\nin the `config/bundles.php` file of your project:\n\n```php\n// config/bundles.php\n\nreturn [\n    // ...\n    Intracto\\FasOpenIdBundle\\IntractoFasOpenIdBundle::class =\u003e ['all' =\u003e true],\n];\n```\n\n### Step 3: register bundle routing\nLoad the bundle's routing inside your application\n```yaml\nintracto_fas_open_id:\n    resource: \"@IntractoFasOpenIdBundle/Resources/config/routing.xml\"\n```\n### Step 4: Configuration\n#### Bundle configuration\n(If not done by Flex, create a intracto_fas_open_id.yaml file in your config/packages folder).\n\nConfig parameters needed to get this bundle working:\n* `client_id`: the client ID of your registered application\n* `client_secret`:  the client secret of your registerd application\n* `scope`: 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 used\n* `auth_path`: the route name where the `FasOpenIdAuthenticator` will check to authenticate the user. The default value for this parameter is `intracto_fas_open_id.auth`\n* `target_path`: the route name where the user will be redirected to on successful authentication\n* `login_path`: the route name where the user will be redirected to when he has to login\n* `user_class`: FQN of your user class, this is optional. Make sure your user extends the User class of this bundle\n\n#### Firewall configuration\nThen, 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.\n```yaml\nsecurity:\n    providers:\n        intracto_fas_open_id_user_provider:\n            id: intracto.fas_open_id.user_provider\n    ...\n    my_firewall:\n        ...\n        guard:\n            ...\n            authenticators:\n                - intracto.fas_open_id.authenticator\n            provider: intracto_fas_open_id_user_provider\n\n```\n\nIf you want to log out from FAS, add the `intracto.fas_open_id.logout_handler` to your firewall logout handlers.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fintracto%2Ffas-open-id-bundle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fintracto%2Ffas-open-id-bundle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fintracto%2Ffas-open-id-bundle/lists"}