Enabling OpenID Connect Authentication by .config file

Jamie Sammons, modified 2 Years ago. New Member Posts: 10 Join Date: 10/18/22 Recent Posts

I am using DXP 7.0. The document said the .config is com.liferay.portal.security.sso.openid.connect.configuration.OpenIdConnectConfiguration.config, but what should set? It is at instance level and export config is not supported.

thumbnail
Zsigmond Rab, modified 2 Years ago. Liferay Master Posts: 764 Join Date: 1/5/10 Recent Posts

Hi David,

Do you mean the https://learn.liferay.com/w/dxp/installation-and-upgrades/securing-liferay/configuring-sso/using-openid-connect document? What would you like to configure through the config file exactly? The instance level enablement only? Isn't that fine to enable that on the ui?

"It is at instance level and export config is not supported." Without knowing more details I can say that the config file can be deployed on file system level.

Regards,

Jamie Sammons, modified 2 Years ago. New Member Posts: 10 Join Date: 10/18/22 Recent Posts

Thanks for you help

Yes, that is the document that I referred to. The UI setting is fine, but I prefer to put them in a file and version control it. I would like to set all instances to enable OpenID Connect by default.

thumbnail
Zsigmond Rab, modified 2 Years ago. Liferay Master Posts: 764 Join Date: 1/5/10 Recent Posts

Hi David,

In order to set all instances to enable OpenID Connect by default, you need a config file with

com.liferay.portal.security.sso.openid.connect.configuration.OpenIdConnectConfiguration.config

name and 

enabled=B"true"

content.

Regards,

Jamie Sammons, modified 2 Years ago. New Member Posts: 10 Join Date: 10/18/22 Recent Posts

Thanks, it worked