Skip to main content

Create and enable the SSO connection

This guide creates the SSO connection of the acme organization, for @acme.com addresses, then enables it.

Prerequisites​

1. Open the connection page​

  1. In your profile menu (top right), click Organization members.
  2. Open the SSO connection tab.

The Single sign-on (SSO) page shows No SSO connection.

2. Create the connection​

  1. Click Create the connection.
  2. Fill in the Create the SSO connection form:
FieldExampleGood to know
Display nameAcmeThe name people see at sign-in, 64 characters at most
Discovery URLhttps://acme.okta.com/oauth2/default/.well-known/openid-configurationAs your provider shows it, over https. The URL is the issuer followed by /.well-known/openid-configuration
Client id0oa1b2c3d4e5f6g7h8i9The application's identifier at your provider
Client secretWrite only: it is never shown again
Allowed domainsacme.com checkedNone checked: every verified domain of the organization. A subdomain is a domain of its own
Confirm the address by a linkEnabledTurn it off only if your provider sends email_verified in the ID token
Invitation requiredDisabledEnabled: only invited people sign in (see Manage the connection)
First name claim / Last name claimEmptyEmpty: given_name and family_name
Roles claimEmpty, or groupsEmpty: tiers are granted in Hikube. Set: role bindings decide the tiers of SSO accounts

Under Advanced settings:

FieldGood to know
PKCELeave it enabled, unless your provider refuses it
Additional scopesSeparated by spaces. openid, email and profile are always requested. offline_access is refused
  1. Click Create.

Hikube reads the discovery document and refuses a connection whose issuer, endpoints or signature are not suitable. The console shows SSO connection created. Register its redirect URI at your provider, then enable it. The connection is Disabled.

Nested claims

A claim can be a dotted path, for example hikube.roles for the roles field of the hikube object. A dot within a name is written \.: https://acme\.com/roles.

Create the SSO connection form filled in for Okta

3. Register the redirect URI​

  1. In the SSO connection card, copy the Redirect URI.
  2. At your provider, paste it into the application, as is.

4. Enable the connection​

  1. Click Enable.
  2. The console shows SSO connection enabled. and the status changes to Enabled.

When enabling, Hikube checks the DNS record of each domain served again. If it has disappeared, enabling is refused: publish the record again (see Verify a domain).

5. Test​

  1. Open a private browsing window on console.hikube.cloud.
  2. Enter an @acme.com address that has no Hikube password.
  3. You are sent to your provider. Sign in.
  4. With Confirm the address by a link, open the link received by e-mail.

A person's first sign-in​

  • Account creation. At their first sign-in, Hikube creates the person's account, without any tier. The account belongs to the organization: it is an SSO account.
  • Confirmation. With Confirm the address by a link, the person confirms their address with the link received. The account appears in the members once confirmed. It is deleted if it is not confirmed within 24 hours.
  • Tiers. An administrator then grants a tier from the members page. With a roles claim, role bindings grant the tiers at every sign-in.
  • Domains. The address in the ID token must be on an allowed domain, compared exactly. With acme.com alone, bob@eu.acme.com is refused.
  • Accounts with a password. They keep signing in with their password and are never redirected.
  • Number of members. The organization's member limit applies. A person beyond it can sign in, but Hikube refuses their requests until a member has been removed.
  • Profile. The first name and last name are taken from the ID token at every sign-in. They cannot be edited in Hikube.