Introduction

Get started

Learn how the Orneos Developers platform works and build your first integration in a few minutes.

1. Two protocols for two jobs

#

Orneos keeps user identity (SSO) separate from access to cloud data (files, calendars, contacts). A sign-in token never grants access to files, and vice versa:

Best practice: Always use OpenID Connect to identify a user. Never ask for their Orneos password.
Purpose Protocol Credentials Endpoints
User sign-in (SSO)
“Sign in with Orneos”
OAuth 2.1 / OIDC client_id + PKCE S256 (+ client_secret server-side) login.orneos.eu/oauth/authorize
orneos.eu/oauth/token
Cloud data
Files, calendars, contacts, Meet
WebDAV / CalDAV / CardDAV / OCS Orneos username + app password app.orneos.eu/remote.php/dav/
app.orneos.eu/ocs/v2.php/

2. Choosing an application type

#

When you create your application in the console, pick the type that matches where your code runs:

  • Confidential client (web server): PHP, Node.js, Python, Ruby, Go, Java, C#… Your code runs on a server that can keep a client_secret safe.
  • Public client (SPA, mobile, desktop): React, Vue, Svelte, iOS, Android, Electron… The code runs on the user’s device and cannot hide anything: no secret, security relies on PKCE S256.

3. The sign-in flow in 3 steps

#

Orneos follows OAuth 2.1 (Authorization Code flow with PKCE):

Step A — Authorization request: your application generates a random code_verifier, computes its SHA-256 hash (code_challenge) and redirects the user to login.orneos.eu/oauth/authorize.

Step B — Consent: the user signs in to Orneos and agrees to share the requested information (openid profile email). The consent is remembered: they are only asked again if you request new scopes.

Step C — Exchange: Orneos returns to your redirect_uri with a one-time code, valid for 60 seconds. Your application exchanges it, together with its code_verifier, for an access token, an ID Token and a refresh token.

Sample authorization request
https://login.orneos.eu/oauth/authorize
  ?client_id=orn_your_client_id
  &redirect_uri=https%3A%2F%2Fexample.com%2Fcallback
  &response_type=code
  &scope=openid%20profile%20email
  &state=random_anti_csrf_value
  &code_challenge=sha256_hash_of_the_verifier
  &code_challenge_method=S256