This app now authenticates users with Google OAuth 2.0.
- Open Google Cloud Console: https://console.cloud.google.com/
- Go to APIs & Services > Credentials.
- Create an OAuth 2.0 Client ID for a Web application.
- Add your app callback URL to Authorized redirect URIs.
Use this callback URI format:
https://YOUR_DOMAIN/PATH_TO_APP/index.php
Example:
https://example.edu/fluencybuilder/index.php
Set these values in your web server/PHP environment:
GOOGLE_CLIENT_ID(required)GOOGLE_CLIENT_SECRET(required)GOOGLE_REDIRECT_URI_FB(optional, defaults to.../index.php)GOOGLE_HOSTED_DOMAIN(optional, e.g.byu.edu, to restrict sign-ins)
After setting env vars, restart PHP-FPM/Apache/Nginx as needed so PHP can read the new environment values.
- Existing session keys remain unchanged (
netid,name,emailAddress, etc.). - For
@byu.eduaccounts,netidis derived from the email prefix. - For other domains,
netiduses Googlesub(stable unique user ID).