Configuring OIDC Authentication for WinCC OA Project

Follow these steps to configure your WinCC OA project to use OIDC authentication with Keycloak as the Identity Provider (IdP).

  1. Open your project configuration file for editing, see Project Config File.
  2. Optional: Set the client ID (optional) used when connecting to the IdP, see ../../config_entries/sections/general.html#general__authClientId.
    authclientid = <your_client_id>

    If not defined, the default value is winccoa.

  3. Configure the OIDC endpoint(s).

    Add one or more ../../config_entries/sections/general.html#general__authEndpoint entries to specify the .well-known endpoint(s) of your Identity Provider:

    [general]
    authendpoint = https://<keycloak_host>/realms/<authRealm>/.well-known/openid-configuration

    Example:

    https://localhost:8443/realms/winccoa-realm/.well-known/openid-configuration

    Multiple authendpoint entries are allowed. Even if not explicitly configured, WinCC OA will append its own OIDC provider endpoint as the last item as local emergency login option.

  4. Save the configuration file and restart your WinCC OA project.

    This applies the new authentication settings.

Your WinCC OA project is now configured to use OIDC authentication with Keycloak as the Identity Provider.