# Sign-in

> Connect your identity provider, choose who can join through it, and add or deactivate members with SCIM provisioning.

Source: https://docs.corfedo.ai/workspace/members/sign-in/

A sign-in connection is an identity provider members sign in with: Microsoft Entra ID, Okta, Google Workspace, Authentik or another OpenID Connect provider such as Keycloak or Auth0.

## Before you begin

- You are a workspace administrator.
- An administrator account at your identity provider, to register an application there.

## Add a connection

### Register an application

Open **Settings** › **Sign-in**, select **Add connection**, choose your provider and follow **Register an application**.

### Enter its details and who can join

Under **Enter the application details**, enter the **Issuer URL**, the **Client ID** and the **Client secret**. Under **Choose who can join**, keep **Anyone authenticated by this provider** or add claim conditions, such as `email` contains `@acme.com`. For Google Workspace, enter your domain in the `hd` condition, because every Google account shares one issuer.

Select **Save draft**. Nobody can sign in through a draft. Then copy the **Callback URL** and add it to the application at your provider.

### Test and activate

Select **Test sign-in**, sign in with your own account and select **Activate** once the test passes.

**Check:** the connection shows **Enabled** under **Sign-in**.

## Choose the connections members use

Next to **Members sign in with**, select **Change**. Tick the connections members may use and choose the one **Offered first** on the sign-in page. People who can sign in only through a connection you clear lose access.

[Fill a group from sign-in](https://docs.corfedo.ai/workspace/members/#fill-a-group-from-sign-in) reads groups from a connection.

## Change a connection

Edits wait as **Unactivated changes**. Sign-in keeps the configuration in use until you select **Test sign-in** and **Activate changes**. Activating a new **Issuer URL**, **Client ID** or **Identity key** signs everyone out of this connection, including the CLI and coding agents. **Replace client secret** applies at once and keeps sessions.

Corfedo refuses any change that leaves no active administrator able to sign in.

## Provision members with SCIM

With provisioning, your identity provider adds members, keeps their names up to date and deactivates them without waiting for them to sign in. It works for every enabled connection except Google Workspace. For Entra ID, the connection's **Identity key** must be **Entra object ID (tid and oid)**.

1. Open the connection, select the **Provisioning** tab and **Set up provisioning**. Select **Create credential**, copy it, and enter it and the **SCIM address** at your provider.
2. Assign yourself to the application at your provider and wait until it sends your user. Then select **Sign in to prove**.
3. Select **Start syncing**. The users waiting under **Provisioning** become members, and groups arrive from then on.

**Check:** **Managed members** counts the members your provider manages.

| Action | Effect |
| --- | --- |
| **Require provisioning** | Members your provider does not provision cannot sign in until it provisions them |
| **Offer a group** | Your provider takes over an existing group, with its permissions and repository access |
| **Detach** | Members and groups can be changed in Corfedo again. Turn off provisioning at your provider too. |

## Troubleshooting

| What you see | Why | What to do |
| --- | --- | --- |
| **Activate** stays unavailable | No test sign-in of the current configuration passed | Select **Test sign-in**. The result lists the line that failed. |
| **The admission conditions do not admit this identity.** | Your sign-in does not meet the conditions under **Who can join** | Compare the claims with the conditions, or change them |
| **You would not keep administrator access through this connection.** | The sign-in reaches another account | Check the **Identity key**, or keep another administrator connection |
| **Managed by deployment** on a connection | Whoever runs Corfedo manages it in a connections file | Ask them to change it there |
| No administrator can sign in | Sign-in broke at the provider | Ask whoever runs Corfedo for a recovery link, see [Recover sign-in](https://docs.corfedo.ai/operate/security/#recover-sign-in). |
