Rock8Cloud
Guides

OIDC Providers

Connect your identity provider so services can require an OIDC sign-in

An OIDC provider connects your organization's identity provider to Rock8Cloud. Once an owner adds it, any service in the organization can use it for OIDC access protection, so visitors sign in with the provider before they reach the app. OIDC providers are available on the Earth plan and above.

Who Can Do What

RoleWhat they can do
OwnerAdd, edit, revalidate, rotate the secret of, and delete providers in Settings → OIDC Providers, or add and edit them while setting up a service in Security → Access
MemberPick a provider for a service, or switch a service away from it, on the service's Security → Access page
ReaderSee the provider's name and status in a service's settings

Only owners see the issuer URL and client ID. Nobody can read the client secret back after it is saved. See Teams and Organizations for roles.

Provider Requirements

Rock8Cloud works with any identity provider that meets these requirements. It was tested with Keycloak. For how to create a client in your provider, follow the provider's own documentation.

  • OpenID Connect discovery. The provider publishes its settings at <Issuer URL>/.well-known/openid-configuration, and the issuer in that document matches the Issuer URL you enter.
  • HTTPS everywhere. The issuer and every endpoint in the discovery document use HTTPS with a certificate from a public certificate authority. Self-signed certificates are rejected.
  • Reachable from the internet. Every hostname resolves only to public addresses. Private networks, local names, and IP addresses are rejected. The provider also cannot run on a Rock8Cloud platform URL such as *.apps.rock8.cloud.
  • Confidential client. The client has a client ID and a client secret.
  • Authorization code flow. Sign-in uses the standard authorization code flow with the openid, email, and profile scopes.
  • Client secret sent in the request body. The provider accepts the client secret as a form field at the token endpoint (client_secret_post). Providers that only accept other client authentication methods do not work.
  • Registered URLs. The client allows the callback URL and the post-logout redirect URL of every protected environment. See Register the callback URLs.

A logout endpoint is optional. When the provider publishes one, signing out of a protected service also signs the user out at the provider.

Add a Provider

Add a provider from either place, the form is the same:

  • Settings → OIDC Providers, then Add provider.
  • While setting up a service: Security → Access, pick OIDC provider, then Add a provider (or Add new) in step 1. The new provider is selected for the service right away.
  1. Pick your provider: Keycloak, Google Workspace, Microsoft Entra ID, Okta, Auth0 or Other. The fields and their labels adapt to it.
  2. Open How to set this up in ... for the steps in that provider's console. The callback and post-logout URLs belong to each service, so the guide points to them instead of repeating them. From a service, Show the URLs in step 2 scrolls to them.
  3. Fill in the provider details. For the named providers the Issuer URL is built for you (Keycloak host and realm, Entra tenant ID, Okta or Auth0 domain, Google needs nothing). Edit manually lets you type it instead. Other asks for the issuer URL directly.
  4. Enter a Name that members will recognize, the client ID and the client secret, then click Validate and add.
ProviderIssuer URLWatch out for
Keycloakhttps://<host>/realms/<realm>Every user of the realm can sign in
Google Workspacehttps://accounts.google.comUse the Internal consent screen user type. With External, anyone with a Google account can sign in
Microsoft Entra IDhttps://login.microsoftonline.com/<tenant-id>/v2.0Keep the app single tenant, and copy the secret's Value, not its ID
Oktahttps://<domain> or https://<domain>/oauth2/<server-id>Control who signs in with the app's Assignments
Auth0https://<domain>/Set the authentication method to Client Secret (Post)

Saving checks the provider before anything is stored:

  • Rock8Cloud fetches the discovery document and checks the issuer, the endpoints, and their certificates against the requirements above.
  • It then sends a test request to the provider's token endpoint to check the client ID and client secret. If the provider rejects them, nothing is saved. Some providers do not give a clear answer, and then the secret is saved without confirmation.

If a check fails, the form shows why and nothing is saved. The client secret is stored encrypted and never shown again.

Manage Providers

Open the actions menu next to a provider in Settings → OIDC Providers. Edit opens the form in place of the row. Owners can also edit the provider a service uses from step 1 of its OIDC setup.

ActionWhat it does
EditChange the name, issuer URL, or client ID. Leave Client secret blank to keep the current secret. Changing the Issuer URL or Client ID requires the secret again. The provider is checked again before the change is saved.
RevalidateRuns the checks again with the stored settings and picks up changed endpoints from the provider.
Rotate secretReplaces the client secret. The new secret is sent to the provider in a test request first. If the provider rejects it, the current secret stays.
DeleteRemoves the provider and its stored secret.

Services that use the provider pick up a revalidation, a rotated secret, or an edit that changes more than the name on their own. A rename does not affect them. There is no build and no new deployment. Their Environments panel shows Pending until each environment is protected with the new settings.

Each provider row shows its status:

  • Healthy - the last check passed.
  • Validation failed - the last revalidation failed. The reason is shown under the provider. Services that already use it keep working with the last settings that passed. Members cannot pick it for another service until a revalidation or an edit passes the checks.

A provider that services still use cannot be deleted. The delete dialog shows how many services use it. Switch those services to another access choice first.

Troubleshooting

ProblemSolution
"Discovery document issuer does not match the issuer URL"Copy the issuer value from the provider's discovery document into Issuer URL
"The identity provider rejected the client ID or client secret"Check that the client is confidential and that the secret is current
A hostname is rejected as not allowed or not publicThe provider must be reachable from the internet on a public hostname
Sign-in fails with a redirect URI errorRegister the environment's callback URL with the provider
Sign-in fails on a new previewRegister the preview's callback URL and post-logout redirect URL
Sign-in fails after returning from the provider while the environment shows ProtectedThe client secret is probably wrong or was changed at the provider. Use Rotate secret with the current secret, or Revalidate to check it
Add provider is disabledOIDC providers need the Earth plan or higher

On this page