{"id":20748019,"url":"https://github.com/vicchi/flamework-googleapp","last_synced_at":"2026-04-28T05:35:33.785Z","repository":{"id":3428351,"uuid":"4480098","full_name":"vicchi/flamework-googleapp","owner":"vicchi","description":"Use the Google OAuth2 API for authentication/login in Flamework","archived":false,"fork":false,"pushed_at":"2012-05-29T09:29:04.000Z","size":100,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-26T16:49:38.561Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vicchi.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":"2012-05-29T09:18:33.000Z","updated_at":"2013-12-26T07:20:47.000Z","dependencies_parsed_at":"2022-09-05T16:31:00.311Z","dependency_job_id":null,"html_url":"https://github.com/vicchi/flamework-googleapp","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/vicchi/flamework-googleapp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vicchi%2Fflamework-googleapp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vicchi%2Fflamework-googleapp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vicchi%2Fflamework-googleapp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vicchi%2Fflamework-googleapp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vicchi","download_url":"https://codeload.github.com/vicchi/flamework-googleapp/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vicchi%2Fflamework-googleapp/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32368533,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-27T20:07:02.737Z","status":"online","status_checked_at":"2026-04-28T02:00:07.250Z","response_time":56,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-17T08:15:07.353Z","updated_at":"2026-04-28T05:35:33.753Z","avatar_url":"https://github.com/vicchi.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"flamework-googleapp\n--\n\nThese are drop-in pages (and libraries) for Flamework so that all authentication and login magic is handled using the Google OAuth2 API as a single sign-on provider. It works (for me), but the documentation is minimal and it's still a work-in-progress. Expect fun and games (and bugs).\n\nInstallation\n--\n\n* Grab the source and put it somewhere\n* Configure your Flamework powered site for Google OAuth2 in the [Google APIs Console](https://code.google.com/apis/console/)\n* Run [bin/setup.sh](https://github.com/vicchi/flamework-googleapp/blob/master/bin/setup.sh), passing as a parameter to path to the root of your Flamework install\n* Copy the contents of [www/include/config.php.example](https://github.com/vicchi/flamework-googleapp/blob/master/bin/setup.sh) into `\u003cflamework-root\u003e/www/include/config.php`\n\n\t\t# Google OAuth2 stuff\n\t\t# Configure these from the values you got back from the Google APIs Console\n\t\t# (https://code.google.com/apis/console/)\n\t\n\t\t# Stuff you will 100% want to configure; you'll get the Client ID and the Client\n\t\t# Secret from the Google APIs Console when you create a new Project and generate\n\t\t# OAuth2 credentials - see https://code.google.com/apis/console\n\t\t\n\t\t$GLOBALS['cfg']['google_oauth2_client_id'] = '';\n\t\t$GLOBALS['cfg']['google_oauth2_client_secret'] = '';\n\t\t\n\t\t# Stuff you'll probably want to configure; this is the bare-bones scope needed to\n\t\t# actually authenticate with Google via OAuth2. Take a look at the OAuth 2.0 Playground\n\t\t# - https://code.google.com/oauthplayground/ - for a reasonably complete list\n\n\t\t$GLOBALS['cfg']['google_oauth2_scope'] = 'https://www.googleapis.com/auth/userinfo.profile';\n\t\n\t\t# Stuff you probably won't want to configure\n\t\t\n\t\t$GLOBALS['cfg']['google_oauth2_access_type'] = 'offline';\n\t\t$GLOBALS['cfg']['google_oauth2_approval'] = 'auto';\n\t\t\n\t\t# Stuff you shouldn't configure unless you're using custom callback code\n\t\n\t\t$GLOBALS['cfg']['google_oauth2_redirect_uri'] = 'auth_callback_google_oauth2.php';\n\n* You'll want to adjust your page templates to use `signin_google_oauth2.php` as your signin link and probably do some `.htaccess` magic as well\n* Look in `schema/alters` in your Flamework root to see the database table setup stuff you'll need to add into your database, either via the `mysql` command or via phpMyAdmin.\n\nThat's it. Or should be. If I've forgotten something (possible) or there's a bug (probable), please let me know or submit a pull request.\n\nTo Do\n--\n\n* Add code to allow basic Google OAuth2-ness without also having to create a new database user.\n* Add code to allow Google OAuth2 authentication to be added to an existing database user; in other words, to allow multiple OAuth'd API access from a single database user's account and not just as SSO\n\nSee Also\n--\n\n* [Aaron's fork of flamework](https://github.com/straup/flamework)\n\nSee Also Also\n\n* [The original flamework](https://github.com/exflickr/flamework)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvicchi%2Fflamework-googleapp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvicchi%2Fflamework-googleapp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvicchi%2Fflamework-googleapp/lists"}