Step 1: Use the identity provider from ODC for the connection to your application.
Step 2: Create a new application from the template.
Step 3: Change all URLs and parameters to match your Keycloak instance. In the settings, set your client ID and client secret.
Step 4: In your application, change the OnException. There is an example in the template.
OnException
Step 5: Add the get token logic. There is an example in the template.