CommunityHire an ExpertSign Up
Sign-in methodsGoogle sign-in
Sign-in methods

Google sign-in for your app

Let people sign in to your app with Google: create an OAuth client in Google Cloud, paste its credentials into Softr and send email domains to Google.

Google sign-in adds a Continue with Google button to your app’s sign-in and sign-up pages. People with a Google account get in with one click, and you never hold a password for them.

You set it up in two places. In the Google Cloud console, you create an OAuth client. In Softr, you paste its client ID and secret. Keep both tabs open.

Before you start

You need two things.

  • A Google account that can create Cloud projects. Creating a project needs the resourcemanager.projects.create permission. Personal Google accounts have it. A work account in a Google Cloud organization often does not, and the No organization row in the project picker shows a warning triangle. In that case, ask your Google Cloud administrator to create the project or grant you the permission, then continue from step 2.
  • Your app’s URL, exactly as visitors see it. Open your published app and copy the address from the browser bar. On a Softr subdomain it is https://yourapp.softr.app, with no www.. On a custom domain, it is the host you connected. Copy the scheme and host only, with no trailing slash and no path.

Create the OAuth client in Google Cloud

Google Cloud issues the client ID and secret that Softr needs. Follow these steps in the Google Cloud console.

Create a Google Cloud project

In the Google Cloud console, give the project a name. Google derives a project ID from it, which cannot be changed later. If your account belongs to an organization you also have to pick a Parent resource. Select Create.

The New Project form with a project name filled in and the Create button below it

Naming a new project in the Google Cloud console.

Name the app people will consent to

Go to Google Auth Platform → Branding. App name and User support email are what people see on Google’s consent screen the first time they sign in, so use the name of your portal rather than the project ID. Select Save.

The App information section of the Branding page, with the app name and user support email fields outlined

App name and support email on the Branding page.

Choose who can sign in, and publish the app

Open Audience. Two settings on this page decide who gets in.

The Audience page showing publishing status Testing and user type External

Publishing status and user type on the Audience page.
  1. Publishing status. A new project starts in Testing, and while it is in Testing only the Google accounts listed under Test users can sign in, up to 100 of them. Select Publish app to move it into production.
  2. User type. External lets anyone with a Google account sign in. Internal appears only if your Google account belongs to a Google Workspace organization, and limits sign-in to that organization.

Note which User type you picked. You set the same value on the Softr side.

Create the OAuth client

Go to Clients → Create client. Set Application type to Web application and give the client a name. The name is only used to identify the client in the console; nobody signing in ever sees it.

The Create OAuth client ID form with application type set to Web application and a client name entered

Choosing the Web application client type.

Add your app's URL to both lists

Under Authorized JavaScript origins, select Add URI and paste your app’s URL. Then do the same under Authorized redirect URIs. Select Create.

The two URI lists on the OAuth client form, each holding the app's URL

The same app URL added as a JavaScript origin and a redirect URI.

Copy the client ID and secret

Google shows the new client’s ID and secret as soon as it is created. Copy both before you close the panel.

Add the credentials to Softr

This part happens in your app in Softr Studio. Use the client ID and secret you copied from Google.

Switch Google Sign-in on

In Softr Studio, open your app and go to Users → Authentication. Turn on the Google Sign-in toggle (1), then select the gear (2) to open its settings.

The Authentication method list with the Google Sign-in toggle switched on and its gear icon beside it

The Google Sign-in row in the Authentication method list.

Paste the credentials

Paste the Google client ID and Google client secret you copied from the console (1). Then set User type (2) to the value you chose on the Audience page.

The Google Sign-in settings dialog showing the client ID and secret fields, the user type control, and the email domains field

The Google Sign-in settings dialog with Internal selected.

Save and publish

Select Save, then publish your app so the change reaches the live site. The amber dot beside Google Sign-in disappears.

Settings

The Google Sign-in settings dialog has these fields.

SettingWhat it does
Google client IDThe client ID from your OAuth client. Required.
Google client secretThe client secret from your OAuth client. Required.
User typeInternal or External. Set the same type as on the Google Audience page.
Google Sign-in email domainsShown only when User type is Internal. Optional. See the next section.

Save stays off until the client ID and the client secret are both filled in.

Send email domains to Google

With Internal selected, add your company’s email domains to Google Sign-in email domains. Anyone whose email address is on one of these domains always goes to Google to sign in, even when your app also offers email or SSO. Enter domains such as softr.io, and press Enter or Space after each one.

Softr refuses a domain that is already in your SSO email domains and shows which ones clash. Each domain goes to one method.

Choosing External hides the field, because an external client accepts any Google account.

The same dialog with user type set to External and no email domains field beneath it

With External selected, the email domains field is not shown.

What people see

Continue with Google appears on both the sign-in and the sign-up page of your app. The first time someone uses it, Google shows a consent screen with the app name and support email you set under Branding.

An app login page with Continue with Google above the SSO button and the email field

The Continue with Google button on a published app's login page.

To see and manage the people who sign in, open the users list of your app.

Troubleshooting

ProblemCause and fix
Google refuses the request before showing the account chooserThe URL on the OAuth client does not match the address in the browser. Compare them character by character: http or https, www. or not, and no trailing slash. After you change the client, wait a few minutes. Google says changes can take up to a few hours.
Some people can sign in and others cannotEither the Google Cloud project is still in Testing, so only the accounts on the test-user list get in, or the User type is Internal and the refused people are outside your Google Workspace organization. Both settings are on the Audience page.
The amber dot beside Google Sign-in does not clearSoftr marks a method Setup is incomplete until it has a saved client ID and secret. Reopen the gear and check that both fields are filled and saved.
Only people on certain domains are sent to GoogleThe Google Sign-in email domains field does this. Clear it if those people should also use email or SSO.

FAQ

How does Google sign-in work in Classic apps?

Classic apps are the older Softr apps, built from blocks before Softr AI. On the current version, Classic apps set up Google sign-in the same way as on this page: turn on Google Sign-in in Users, then Authentication. Classic apps built before February 12, 2025 still use sign-in blocks: first add your Google Client ID and Client Secret in Integrations, then Google Sign In. Then turn on Sign in with Google in the Signin form block. If you turn on Only registered users can sign in, only people who already have an account can sign in with Google. See Sign-in blocks.

Use these docs with your AI tools

An AI agent can read this documentation directly. You do not need an account or an API key. Everything here is public and read-only.

Query these docs via MCP

Recommended

Add this server to Claude, Claude Code, Cursor, Mistral, or any tool that supports MCP. Your agent can then search Softr Documentation documentation and read it in full, instead of answering from memory.

https://docs.softr.io/mcp
  • searchFind the passages that answer a question.
  • fetchRead one page in full, as Markdown.
  • list_pagesSee every page in this documentation.

Query these docs over HTTP

The same tools also work as plain web requests. Use this for scripts, or for any tool that does not support MCP. There is one endpoint per tool. Arguments go in the query string, and the answer comes back as JSON.

https://docs.softr.io/api/docs/search?query=custom+domain

Read the OpenAPI description. It is built from the same definitions as the tools, so it always matches what the endpoints do.

Read these docs as Markdown

Add .md to any page URL to get its Markdown source. You can also send the headerAccept: text/markdown to the page URL itself.

To read the whole documentation in one file, open llms-full.txt. For a short index of every page, open llms.txt.