Authentication and authorization
The Apaleo Identity API implements OAuth 2.0 for authorization and follows the OpenID Connect specification for user authentication. To decide which flow fits your app, see Which OAuth 2.0 grant works best for me?.
Authentication is the process of proving your identity.
Authorization grants an authenticated person or app permission to access data and defines what they can do with it.
OpenID Connect builds on OAuth 2.0 and uses similar terminology and flows. In a single request, an app can authenticate a user with OpenID Connect and request authorization to access a protected resource on that user’s behalf with OAuth 2.0. For more information, see OAuth 2.0 and OpenID Connect basics.
How your app is registered
You choose your app’s client type and client access when you register it. Both settings are fixed at registration.
Client type
Client type determines how your app connects to Apaleo and which OAuth 2.0 grant it uses.
- Org app — connects to a hotel’s account and uses the installation grant. Its tokens are bound to the account, so staff, role, and admin changes do not affect the connection.
- User app — connects on behalf of a specific Apaleo user and uses the authorization code grant. Its access tokens are bound to that user.
Org apps request tokens without using OpenID Connect or authenticating a user. The installation grant issues no ID token, and the access token omits the sub claim.
Client access
Client access determines how your app’s permissions to the Apaleo APIs are defined.
- Scope client — the app receives broad API scopes in its OAuth access token. Scope clients use the User app type by default. Only an account admin can authorize a scope client.
- Fine-grained client (recommended for store apps) — the app receives the specific permissions it needs per API on the properties the hotel selects. Org apps require fine-grained access.
To learn more, see Scopes and permissions.