Site & team management /Security /Secure access to sites /Authenticate with Identity /

Authenticate users with Netlify Identity

Netlify Identity is deprecated

Netlify Identity service and the underlying GoTrue API are deprecated. While Identity and GoTrue continue to function for sites that currently have them enabled, new Identity or GoTrue configurations are not recommended. While we will keep fixing any major security issues that arise, we will no longer fix bugs in the functionality of Identity or GoTrue.

  • For help migrating, existing users can reach out to Support to help you export a list of your users
  • For an alternative to Netlify Identity, we suggest using Auth0. Learn more in our Auth0 extension docs.
  • For an alternative to GoTrue, we suggest Supabase Auth, which is an actively maintained fork of GoTrue.

Netlify Identity service brings a full suite of authentication functionality, backed by the GoTrue API. This allows you to manage and authenticate users on your site or app, without requiring them to be users of Netlify or any other service. You can use this for gated content, site administration, and more.

For a working example using Netlify Identity service with Git Gateway to manage users in Decap CMS, try deploying this repository:

Deploy to Netlify

After selecting Deploy to Netlify above, follow the instructions for adding Identity users to the project and enable Git Gateway. Any Identity users you add will have access to edit site content with Decap CMS, without a GitHub account or access to the repository. To access the CMS for the deployed demo site, navigate to YOUR_DEPLOYED_SITE_URL/admin/.

That’s one example of something awesome that you can do with Identity service. To add Identity service to your existing web projects, check out the instructions below.

# Enable Identity in the UI

Identity requires HTTPS

Identity service requires HTTPS to be secure. If you’re using a custom domain, make sure you have HTTPS working before integrating Identity service with your site.

Do the following to enable Identity service on your site.

  1. In the Netlify UI, navigate to for your site.
  2. Select Enable Identity.

This will create an Identity service instance for your site and allow you to invite Identity users and change settings. To use the service in your site, you can add the Netlify Identity widget to your repository, or develop a custom solution with the gotrue-js library.

# More Identity resources