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.
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.
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.