With single sign-on, the users of a company sign in to the Weble Cloud with their company account, managed by an OpenID Connect identity provider, instead of a Weble password. The identity provider checks the password and its own security policy; the Weble Cloud then opens the session of the matching Weble account.
Single sign-on is configured per company, in the oAuth authentication section of the company settings (see Company settings).
Single sign-on does not create accounts. Each user must already have a Weble Cloud account in the company, with the same e-mail address as in the identity provider.
<Provider URL>/authorize and token endpoint is <Provider URL>/oauth/token (the Weble Cloud builds these two addresses from Provider URL). The provider should publish its configuration and signing keys at <Provider URL>/.well-known/openid-configuration.openid profile email;Register this redirect URI in the application of the identity provider:
https://<server id>.weble.ch/api/auth/callback
<server id> is the Weble Cloud server your users sign in to (the first part of its address, for example https://wbc3.weble.ch gives https://wbc3.weble.ch/api/auth/callback). If your users sign in on several Weble servers, register one redirect URI per server.
Open the company settings and fill in the oAuth authentication section:
| Field | Description | Default |
|---|---|---|
| Provider URL | Base URL of the identity provider, for example https://auth.example.com, without a trailing path. |
– |
| oAuth enabled | Turns single sign-on on for this company. | off |
| Client ID | Application identifier (client_id) issued by the identity provider. |
– |
| Client secret | Application secret (client_secret) issued by the identity provider. |
– |
| Affected accounts | Filters on the username typed on the login page. * matches any text, for example *@example.com. Only the accounts that match use single sign-on; the others keep their Weble password. |
empty |
Save the company settings. Test with one account before you widen Affected accounts to the whole domain.
A sign-in is accepted only when all these conditions are met:
email claim, or preferred_username) is the e-mail address of the Weble account (not case-sensitive).Allow pop-up windows for the Weble Cloud address in your browser. The sign-in must be completed within 3 minutes.
| Symptom | What to check |
|---|---|
| The password field appears instead of the provider window | The username does not match Affected accounts, or oAuth enabled is not ticked. |
| Sign-in cancelled | The provider window was closed, or the browser blocked the pop-up. |
| Sign-in timed out, please try again | The sign-in at the provider took more than 3 minutes. |
| The provider shows a redirect URI error | The redirect URI of section 2 is not registered, or not for this Weble server. |
| The provider accepts the login but the Weble Cloud refuses it | The e-mail returned by the provider is not the e-mail of the Weble account, or the account belongs to another company. Check also that the provider returns the email claim and signs ID tokens with an asymmetric algorithm. |