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).
- Ensure you have a WinCC OA OpenID Connect (OIDC) Project
- Configure an active instance of Keycloak. To setup a new Keycloak instance for WinCC OA, see Set Up Keycloak for OIDC Authentication (Base Configuration)
- Open your project configuration file for editing, see Project Config File.
- 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. -
Configure the OIDC endpoint(s).
Add one or more ../../config_entries/sections/general.html#general__authEndpoint entries to specify the
.well-knownendpoint(s) of your Identity Provider:[general] authendpoint = https://<keycloak_host>/realms/<authRealm>/.well-known/openid-configurationExample:
https://localhost:8443/realms/winccoa-realm/.well-known/openid-configurationMultiple
authendpointentries 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. -
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.
