Forcing the local IdP as a fallback

If the currently set identity provider cannot be reached or is incorrectly configured, you can temporarily switch to the local identity provider using the options listed below local identity provider listed below. This enables a login that can be used to repair an incorrect configuration of the identity provider.

Setting via the Karaf console

There are two ways to activate the local identity provider in the Karaf console. The easiest way is via Karaf console commands for the BPC:

  • Activate

  • Deactivate

virtimo@virtimo()> bpc:force-local-idp on
virtimo@virtimo()> bpc:force-local-idp off

Alternatively, the corresponding setting can be changed via the Karaf command config. The change is applied without restarting Karaf.

  • Activate

  • Deactivate

virtimo@virtimo()> config:edit de.virtimo.bpc.core
virtimo@virtimo()> config:property-set de.virtimo.bpc.core.forceLocalIdentityProvider true
virtimo@virtimo()> config:update
virtimo@virtimo()> config:edit de.virtimo.bpc.core
virtimo@virtimo()> config:property-set de.virtimo.bpc.core.forceLocalIdentityProvider false
virtimo@virtimo()> config:update

Setting via the configuration file

The configuration file de.virtimo.bpc.core.cfg is located in the etc directory of the Karaf installation. The following line can be changed there, which activates or deactivates the local identity provider. When saving, the values are applied without restarting Karaf.

  • Activate

  • Deactivate

...
de.virtimo.bpc.core.forceLocalIdentityProvider = "true"
...
...
de.virtimo.bpc.core.forceLocalIdentityProvider = "false"
...

For the values "true"/"false", refer to the existing values in the file. If these are present without quotation marks, then also insert true/false without quotation marks.
Otherwise the file cannot be read correctly by Karaf.


Keywords: