Skip to content

feat: Support authenticating via Google OAuth and require for PostHog employees#17109

Open
Piccirello wants to merge 3 commits into
masterfrom
tom/google-oauth
Open

feat: Support authenticating via Google OAuth and require for PostHog employees#17109
Piccirello wants to merge 3 commits into
masterfrom
tom/google-oauth

Conversation

@Piccirello
Copy link
Copy Markdown
Member

@Piccirello Piccirello commented May 29, 2026

This PR adds support for authenticating to posthog.com using Google auth. It also requires PostHog employees to user Google auth. Must ship after https://github.com/PostHog/squeak-strapi/pull/190

Set GATSBY_SQUEAK_AUTH_HOST=http://localhost:1337 in .env.developement.local to route auth to your local strapi instance.

Screenshot 2026-05-28 at 20 20 34 Screenshot 2026-05-28 at 21 30 30

Set `GATSBY_SQUEAK_AUTH_HOST=http://localhost:1337` in .env.developerment.local to route auth to a local strapi instance.
@Piccirello Piccirello marked this pull request as draft May 29, 2026 04:10
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 29, 2026

Deploy preview

Status Details Updated (UTC)
🟢 Ready View preview May 29, 2026 05:05AM

errors.email = 'Invalid email address'
} else if (values.email.toLowerCase().endsWith('@posthog.com')) {
errors.email = 'Your employee account is created automatically. Reset your password to log in.'
errors.email = 'Your employee account is created automatically. Sign in with Google instead.'
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How does automatic account creation work? I want to ensure that process still works.

@Piccirello Piccirello marked this pull request as ready for review May 29, 2026 05:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant