{"id":20103134,"url":"https://github.com/dotkernel/dot-controller-plugin-authentication","last_synced_at":"2025-05-06T08:31:09.391Z","repository":{"id":11678856,"uuid":"70261860","full_name":"dotkernel/dot-controller-plugin-authentication","owner":"dotkernel","description":"DotKernel authentication controller plugin component","archived":false,"fork":false,"pushed_at":"2024-03-22T15:17:41.000Z","size":23,"stargazers_count":2,"open_issues_count":1,"forks_count":2,"subscribers_count":1,"default_branch":"2.9-PHP-8.1","last_synced_at":"2025-04-21T08:20:26.878Z","etag":null,"topics":[],"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/dotkernel.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-10-07T16:01:56.000Z","updated_at":"2023-08-17T13:01:56.000Z","dependencies_parsed_at":"2024-03-22T16:44:35.541Z","dependency_job_id":"0773b008-312b-4088-ad6d-0071348fa967","html_url":"https://github.com/dotkernel/dot-controller-plugin-authentication","commit_stats":{"total_commits":17,"total_committers":5,"mean_commits":3.4,"dds":0.3529411764705882,"last_synced_commit":"0d27ae8f4364282ffb9731c75626d03bc7d6c1aa"},"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dotkernel%2Fdot-controller-plugin-authentication","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dotkernel%2Fdot-controller-plugin-authentication/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dotkernel%2Fdot-controller-plugin-authentication/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dotkernel%2Fdot-controller-plugin-authentication/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dotkernel","download_url":"https://codeload.github.com/dotkernel/dot-controller-plugin-authentication/tar.gz/refs/heads/2.9-PHP-8.1","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252648538,"owners_count":21782405,"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-13T17:34:24.259Z","updated_at":"2025-05-06T08:31:09.152Z","avatar_url":"https://github.com/dotkernel.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# dot-controller-plugin-authentication\n\nAuthentication controller plugin.\n\n\u003e [!CAUTION]\n\u003e ## Security-Only Maintenance Mode\n\u003e \n\u003e This package is considered feature-complete, and is now in **security-only** maintenance mode.\n\u003e \n\n![OSS Lifecycle](https://img.shields.io/osslifecycle/dotkernel/dot-controller-plugin-authentication)\n[![GitHub license](https://img.shields.io/github/license/dotkernel/dot-controller-plugin-authentication)](https://github.com/dotkernel/dot-controller-plugin-authentication/blob/2.0.3/LICENSE.md)\n![PHP from Packagist (specify version)](https://img.shields.io/packagist/php-v/dotkernel/dot-controller-plugin-authentication/2.9.2)\n\n\n\n## Installation\n\nRun the following command\n```bash\n$ composer require dotkernel/dot-controller-plugin-authentication\n```\n\nThis will also install package `dotkernel/dot-controller` and `dotkernel/dot-authentication` as dependencies\nEnable the module by merging the `ConfiProvider` output to your application's configuration, to register the services defined by this module.\n\n## Usage\n\nIn any controller, you can access this plugin by calling\n```php\n$this-\u003eauthentication()-\u003e...\n```\n\nThis plugin defines 2 methods you can use in your controllers to check for the currently authenticated identity.\n```php\n$this-\u003eauthentication()-\u003ehasIdentity()\n```\nReturns a boolean value indicating if there is an authenticated identity or a guest identity\n\n```php\n$this-\u003eauthentication()-\u003egetIdentity()\n```\nReturns the current identity as an hydrated object, as defined in the authentication module\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdotkernel%2Fdot-controller-plugin-authentication","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdotkernel%2Fdot-controller-plugin-authentication","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdotkernel%2Fdot-controller-plugin-authentication/lists"}