# coder server fix-oidc-links

Reset OIDC linked IDs that do not match the expected issuer, allowing users to re-authenticate.

## Usage [#usage]

```console
coder server fix-oidc-links [flags]
```

## Options [#options]

### -y, --yes [#-y---yes]

|      |                   |
| ---- | ----------------- |
| Type | <code>bool</code> |

Bypass confirmation prompts.

### --postgres-url [#--postgres-url]

|             |                                          |
| ----------- | ---------------------------------------- |
| Type        | <code>string</code>                      |
| Environment | <code>$CODER\_PG\_CONNECTION\_URL</code> |

URL of a PostgreSQL database. If empty, the built-in PostgreSQL deployment will be used (Coder must not be already running in this case).

### --postgres-connection-auth [#--postgres-connection-auth]

|             |                                           |
| ----------- | ----------------------------------------- |
| Type        | <code>password\|awsiamrds</code>          |
| Environment | <code>$CODER\_PG\_CONNECTION\_AUTH</code> |
| Default     | <code>password</code>                     |

Type of auth to use when connecting to postgres.

### --issuer-url [#--issuer-url]

|             |                                        |
| ----------- | -------------------------------------- |
| Type        | <code>string</code>                    |
| Environment | <code>$CODER\_OIDC\_ISSUER\_URL</code> |

The OIDC issuer URL. The canonical issuer is resolved via OIDC discovery.

### -n, --dry-run [#-n---dry-run]

|             |                                                 |
| ----------- | ----------------------------------------------- |
| Type        | <code>bool</code>                               |
| Environment | <code>$CODER\_FIX\_OIDC\_LINKS\_DRY\_RUN</code> |

Print analysis only, do not modify the database.

### --force-reset-all [#--force-reset-all]

|             |                                                          |
| ----------- | -------------------------------------------------------- |
| Type        | <code>bool</code>                                        |
| Environment | <code>$CODER\_FIX\_OIDC\_LINKS\_FORCE\_RESET\_ALL</code> |

Reset all OIDC linked IDs, not just those with a mismatched issuer. Mutually exclusive with --issuer-url.
