# App registrations

> Let Any2Info services communicate with external apps such as Outlook.

**App registrations** let Any2Info services communicate with external apps, such as Outlook.

## Collection vs. system registrations

There are two types of app registrations:

- **Collection**: only grants access to the currently selected collection.
- **System**: grants access to the whole installation, including all collections. Creating or editing a system app registration requires an admin user. There are no separate roles or rights for system app registrations.

## Default app registrations

Every installation ships with four default system app registrations. Their default values can't be changed, though some additional values may be added on top.

### Any2Info Platform

| Setting | Value |
| --- | --- |
| Client name | Any2Info Platform |
| Client URI | `https://{installation_url}/` |
| Is active | True |
| Use PKCE | True |
| Require redirect URI match | False |
| Grant types | Authorization code |
| Response types | Code |
| Scopes | Platform, Datahub, Openid, Profile, Email |
| Redirect URI(s) | `https://{installation_url}/Platform/signin-oidc` |

### Any2Info Webapp

| Setting | Value |
| --- | --- |
| Client name | Any2Info Webapp |
| Client URI | `https://{installation_url}/Apps` |
| Is active | True |
| Use PKCE | True |
| Require redirect URI match | False |
| Grant types | Authorization code |
| Response types | Code |
| Scopes | Viewer, Native app, Openid, Profile, Email |
| Redirect URI(s) | `https://{installation_url}/Apps/signin-oidc` |

### Outlook Add-in

| Setting | Value |
| --- | --- |
| Client name | Any2Info Webapp |
| Client URI | `https://{installation_url}/Platform` |
| Is active | True |
| Use PKCE | True |
| Require redirect URI match | False |
| Grant types | Authorization code |
| Response types | Code |
| Scopes | Openid, Profile, Email |
| Redirect URI(s) | `https://{installation_url}/api/addin/outlook/complete` |

### Synergy

| Setting | Value |
| --- | --- |
| Client name | Any2Info Webapp |
| Client URI | `https://{installation_url}/` |
| Is active | True |
| Use PKCE | True |
| Require redirect URI match | False |
| Grant types | Authorization code |
| Response types | Code |
| Scopes | Synergy addin |
| Redirect URI(s) | None |

If any of these default app registrations are missing or incomplete, contact Any2Info.

## Secrets

Once an app registration has been created, editing it reveals a **Secrets** tab, used to create and revoke secrets. A secret has three values you provide plus a set of generated values, such as "valid from" and "last used".

When you save a new secret, a popup shows its value exactly once. Copy it immediately: it cannot be retrieved again afterward.

## Errors

| Error message | Meaning | Solution |
| --- | --- | --- |
| X is empty | A required value isn't filled in. | Fill in the required value. |
| X is not valid | A filled-in value isn't valid. | Verify that the value is correct. |
| Input is not a valid URL | An incorrect URL was used as a redirect URI. | Verify the URL is valid: it must include `http(s)` and a top-level domain. |
| Secret expired cannot be before the current date | The set expiry date is in the past. | Set the expiry date to a date in the future. |