{"id":17681690,"url":"https://github.com/phawk/fuel-oauth-provider","last_synced_at":"2025-07-18T20:36:38.917Z","repository":{"id":1722333,"uuid":"2452790","full_name":"phawk/fuel-oauth-provider","owner":"phawk","description":"Oauth Server package for Fuel PHP.","archived":false,"fork":false,"pushed_at":"2011-09-25T01:48:36.000Z","size":862,"stargazers_count":8,"open_issues_count":0,"forks_count":3,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-05-12T23:30:30.288Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/phawk.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2011-09-25T01:45:52.000Z","updated_at":"2014-09-04T08:40:44.000Z","dependencies_parsed_at":"2022-09-07T19:01:14.181Z","dependency_job_id":null,"html_url":"https://github.com/phawk/fuel-oauth-provider","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/phawk/fuel-oauth-provider","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phawk%2Ffuel-oauth-provider","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phawk%2Ffuel-oauth-provider/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phawk%2Ffuel-oauth-provider/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phawk%2Ffuel-oauth-provider/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/phawk","download_url":"https://codeload.github.com/phawk/fuel-oauth-provider/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phawk%2Ffuel-oauth-provider/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265829169,"owners_count":23835090,"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-10-24T09:11:53.299Z","updated_at":"2025-07-18T20:36:38.892Z","avatar_url":"https://github.com/phawk.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Fuel PHP - Oauth Provider\n\nInitial development of an Oauth provider package for Fuel PHP. Apologies for this not being just a single package as there are models and login / permissions pages also added. I couldn't think of an easy way to abstract the database calls from the package that anyone would benefit from, so for now this ships as a full app package. \n\nIf someone smarter than me (there should be a lot of you) wants to fork this and rework it into a single package by all means feel free.\nAlso there is a basic users system in place for testing login and access, this is by no means thorough although should be \"secure\" enough and uses bcrypt for password hashing.\n\n## Prerequisites\n* Requires Orm package.\n* Database tables created.\n* Create a table to hold your users if needed (see below).\n\n## To do's\n* Create the `block/'.$consumer-\u003eid` method, to blacklist consumers against a particular users request token.\n* Implement a RESTful controller and format output methods for easier API development.\n\n## Basic usage\nCreate your database tables for:\n\n### oauth_consumers\n\n\tCREATE TABLE `oauth_consumers` (\n\t  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,\n\t  `key` varchar(255) NOT NULL,\n\t  `secret` varchar(255) NOT NULL,\n\t  `active` tinyint(3) unsigned NOT NULL DEFAULT '0',\n\t  `name` varchar(255) NOT NULL,\n\t  `description` text,\n\t  `image` varchar(255) DEFAULT NULL,\n\t  `homepage` varchar(255) DEFAULT NULL,\n\t  `contact_email` varchar(255) DEFAULT NULL,\n\t  `author` varchar(255) DEFAULT NULL,\n\t  `platform` varchar(255) DEFAULT NULL,\n\t  `callback_url` varchar(255) DEFAULT NULL,\n\t  `user_id` bigint(20) unsigned DEFAULT NULL,\n\t  `date_created` datetime DEFAULT NULL,\n\t  `created_by` bigint(20) unsigned DEFAULT NULL,\n\t  `last_updated` datetime DEFAULT NULL,\n\t  `last_updated_by` bigint(20) unsigned DEFAULT NULL,\n\t  PRIMARY KEY (`id`)\n\t) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=latin1;\n\n### oauth_consumer_nonces\n\n\tCREATE TABLE `oauth_consumer_nonces` (\n\t  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,\n\t  `consumer_id` bigint(20) unsigned NOT NULL,\n\t  `timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,\n\t  `nonce` varchar(255) NOT NULL,\n\t  PRIMARY KEY (`id`)\n\t) ENGINE=InnoDB AUTO_INCREMENT=30 DEFAULT CHARSET=latin1;\n\n### oauth_tokens\n\n\tCREATE TABLE `oauth_tokens` (\n\t  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,\n\t  `type` enum('request','access') NOT NULL DEFAULT 'request',\n\t  `consumer` bigint(20) unsigned NOT NULL,\n\t  `token` varchar(255) NOT NULL,\n\t  `token_secret` varchar(255) NOT NULL,\n\t  `callback` varchar(255) DEFAULT NULL,\n\t  `verifier` varchar(255) DEFAULT NULL,\n\t  `user` bigint(20) unsigned DEFAULT NULL,\n\t  `state` int(11) DEFAULT '0',\n\t  `date_created` datetime DEFAULT NULL,\n\t  `created_by` bigint(20) unsigned DEFAULT NULL,\n\t  `last_updated` datetime DEFAULT NULL,\n\t  `last_updated_by` bigint(20) unsigned DEFAULT NULL,\n\t  PRIMARY KEY (`id`),\n\t  KEY `date_created` (`date_created`)\n\t) ENGINE=InnoDB AUTO_INCREMENT=17 DEFAULT CHARSET=latin1;\n\n### User table\n\n\tCREATE TABLE `users` (\n\t  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,\n\t  `display_name` varchar(255) DEFAULT NULL,\n\t  `full_name` varchar(255) DEFAULT NULL,\n\t  `email` varchar(255) DEFAULT NULL,\n\t  `state` int(11) DEFAULT NULL,\n\t  `password` varchar(255) DEFAULT NULL,\n\t  `date_created` datetime DEFAULT NULL,\n\t  `created_by` bigint(20) unsigned DEFAULT NULL,\n\t  `last_updated` datetime DEFAULT NULL,\n\t  `last_updated_by` bigint(20) unsigned DEFAULT NULL,\n\t  PRIMARY KEY (`id`)\n\t) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=latin1;","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphawk%2Ffuel-oauth-provider","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphawk%2Ffuel-oauth-provider","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphawk%2Ffuel-oauth-provider/lists"}