https://github.com/8thwall/google-auth-yourls
Enables Google Authentication for YOURLS
https://github.com/8thwall/google-auth-yourls
Last synced: 17 days ago
JSON representation
Enables Google Authentication for YOURLS
- Host: GitHub
- URL: https://github.com/8thwall/google-auth-yourls
- Owner: 8thwall
- License: mit
- Created: 2017-03-23T17:07:46.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2023-11-23T12:36:43.000Z (over 1 year ago)
- Last Synced: 2024-11-02T08:30:19.916Z (6 months ago)
- Language: PHP
- Size: 8.79 KB
- Stars: 15
- Watchers: 14
- Forks: 7
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome - Google Auth - Enables Google Authentication for YOURLS. (Plugins / G)
README
# google-auth-yourls
Enables Google Authentication for YOURLSProper documentation coming soon.
For now, here is the very rough documentation:
1. Download the plugin, move contents to plugins directory and rename to google-auth/
2. Download and configure Google APIs Client Library for PHP
- See https://github.com/google/google-api-php-client for install instructions.
- The code assumes that the API directory (vendor/) will reside inside the google-auth/ plugin directory
3. Create an OAuth 2.0 client ID, and download the resulting JSON file (client_secrets.json)
- See https://developers.google.com/api-client-library/php/auth/web-app
- place the client secrets file inside the google-auth/ plugin directory
4. This plugin allows you to filter access based on domain (i.e. only @mydomain.com addresses)
- Edit define('APPROVED_DOMAIN', "mydomain.com");
- If you want anyone with a Google account to get in (you probably don't want that), set to *
- i.e. define('APPROVED_DOMAIN', "*");