{"id":14983742,"url":"https://github.com/alexandre-t/casguard","last_synced_at":"2025-04-10T19:41:09.327Z","repository":{"id":25703827,"uuid":"105235943","full_name":"Alexandre-T/casguard","owner":"Alexandre-T","description":"PhpCas Bundle using guard authentication for symfony 3.4, 4.4 and 5.0","archived":false,"fork":false,"pushed_at":"2021-09-08T21:20:15.000Z","size":96,"stargazers_count":9,"open_issues_count":5,"forks_count":2,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-04-09T07:06:40.148Z","etag":null,"topics":["cas","guard","phpcas-bundle","symfony","symfony-bundle","symfony3","symfony4","symfony5"],"latest_commit_sha":null,"homepage":"","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/Alexandre-T.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/CasAuthenticator.php","support":null}},"created_at":"2017-09-29T06:04:47.000Z","updated_at":"2023-03-10T11:58:58.000Z","dependencies_parsed_at":"2022-07-27T05:16:37.252Z","dependency_job_id":null,"html_url":"https://github.com/Alexandre-T/casguard","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Alexandre-T%2Fcasguard","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Alexandre-T%2Fcasguard/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Alexandre-T%2Fcasguard/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Alexandre-T%2Fcasguard/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Alexandre-T","download_url":"https://codeload.github.com/Alexandre-T/casguard/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248281414,"owners_count":21077423,"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":["cas","guard","phpcas-bundle","symfony","symfony-bundle","symfony3","symfony4","symfony5"],"created_at":"2024-09-24T14:07:51.701Z","updated_at":"2025-04-10T19:41:09.308Z","avatar_url":"https://github.com/Alexandre-T.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"Php CAS Bundle \n==============\n\nPhpCas Bundle provide CAS Authentication using guard for symfony 3.4+ and 4.\n\nThis bundle **DO NOT** provide a CAS server. By using this bundle, your application will be able to use your Cas Server\nto authenticate your users.  \n[![SymfonyInsight](https://insight.symfony.com/projects/cb0f5515-dc7a-4295-9faa-83e81fc1e23b/mini.svg)](https://insight.symfony.com/projects/cb0f5515-dc7a-4295-9faa-83e81fc1e23b)\n[![Coverage Status](https://coveralls.io/repos/github/Alexandre-T/casguard/badge.svg)](https://coveralls.io/github/Alexandre-T/casguard?branch=master)\n[![Build Status](https://travis-ci.org/Alexandre-T/casguard.svg)](https://travis-ci.org/Alexandre-T/casguard)\n\nInstallation\n============\n\nStep 1: Download the Bundle\n---------------------------\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 \"alexandret/phpcas-guard-bundle\" \"~1\"\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\nStep 2: Enable the Bundle\n-------------------------\n\nEnable the bundle by adding it to the list of registered bundles\nin the `config/bundles.php` file of your project:\n\n```php\n\u003c?php\n\nreturn [\n    //...\n    AlexandreT\\Bundle\\CasGuardBundle\\CasGuardBundle::class =\u003e ['all' =\u003e true],\n];\n```\n\nStep 3: Enable the Security\n----------------------------\n\nUpdate your `config\\packages\\security.yaml` file:\n\n```yaml\n#http://symfony.com/doc/current/reference/configuration/security.html#full-default-configuration\nsecurity:\n    # ...\n    firewalls:\n        #Main firewall\n        main:\n            # We use Guard !\n            guard:\n                authenticators:\n                    # ADD the cas authenticator declared in this bundle\n                    - phpcasguard.cas_authenticator\n            # The logout path\n            logout:\n                # This route will be never called because of listener. It will catch it and redirect user.                \n                path: /logout\n                # ADD the same cas authenticator declared in this bundle to activate logout function\n                success_handler: phpcasguard.cas_authenticator  \n    # ...\n\n```\n\nSince Symfony 2.8, Guard is providing a new and excellent way to authenticate. I recommend you to have a look \non [this excellent tutorial](https://knpuniversity.com/screencast/symfony-security) to understand guard features.\nThis tutorial explains how to generate a standard authentication using **guard** and a **login form**. When you \nunderstand it, you only have to disable the call to the login form authenticator implemented in \n[the chapter 5](https://knpuniversity.com/screencast/symfony-security/login-form-authenticator) and replace it by \nthe `phpcasguard.cas_authenticator` declared inside this bundle. \n\nStep 4: Configure the Bundle\n----------------------------\n\nCreate a `config\\packages\\cas_guard.yaml` file:\n\n```yaml\ncas_guard:\n    hostname: '%env(CAS_HOSTNAME)%'\n    # ...\n```\n\nHave a look on the [complete configuration](./Resources/doc/configuration.md) file to complete and \nconnect it with your CAS server. \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexandre-t%2Fcasguard","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falexandre-t%2Fcasguard","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexandre-t%2Fcasguard/lists"}