āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā ā š shadcn/directory/clerk/clerk-docs/guides/configure/auth-strategies/enterprise-connections/saml/google ā āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā
<TutorialHero beforeYouStart={[ { title: "Add the Enhanced authentication add-on to your Pro plan", link: "/pricing", icon: "plus-circle", }, { title: "Enable email for your application.", link: "/docs/guides/configure/auth-strategies/sign-up-sign-in-options", icon: "key", } ]} />
Enabling SAML with Google allows your users to sign up and sign in to your Clerk application with their Google account.
To make the setup process easier, it's recommended to keep two browser tabs open: one for the Clerk Dashboard and one for your Google Admin Console.
<Steps> ## Enable Google as a SAML connection in ClerkThere are two options for configuring your identity provider:
If you choose to manually input the configuration settings for your IdP, you must add these three fields to your Clerk settings:
Mapping the claims in your IdP to the attributes in Clerk ensures that the data from your IdP is correctly mapped to the data in Clerk.
| Clerk attribute | Google claim |
| - | - |
| mail | Basic Information > Primary email |
| firstName | Basic Information > First name |
| lastName | Basic Information > Last name |
The only Google claim that is necessary to map is the Primary email. This is the email address that your users will use to authenticate into your application.
mail.In Clerk, the User object has a publicMetadata property that you can use to store additional information about your users.
To map other claims from Google that don't have a direct mapping to Clerk attributes, you can map them to Clerk's publicMetadata property. To do this, prepend the Clerk claims with public_metadata_ during the mapping process.
For example, say your users have the "Phone number" attribute in Google. You can map this to your users' public metadata in Clerk by mapping the Google field to public_metadata_phone_number.
public_metadata_phone_number.The value for the user's phone number will be saved in the user's User.publicMetadata under the key phone_number.
Learn more about how to access the metadata from our APIs.
Once the configuration is complete in Google, you'll be redirected to the app's overview page.
ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā