Hi team,
I want to use the SSO specifically for one application in our environment. But, currently the SSO is enabled for the whole environment. Is there any way to restrict the SSO for a specific application?
Unfortunately, i do not have a OML file for this.
Thanks,
Bala
+96895796615
In OutSystems, Single Sign-On (SSO) is natively enabled for all applications within the environment when they share the same User Provider module and authentication settings. However, if you need to restrict SSO to a specific application while keeping the overall SSO enabled, you would need to isolate the user provider for that specific app. Here's how you can achieve this:
User Provider
Set up a Dedicated User Provider for the Application Instead of using the default/shared Users module as the User Provider for the specific app, you need to designate a new module that will act as the User Provider for this specific application. Here's how:
Users
Is User Provider
Link the Application to the Dedicated User Provider
Customize Authentication and Users for the Specific App
Ensure Separate Sessions (Optional) By using a separate User Provider, session sharing will be automatically disabled between the selected app and other apps in the environment. This ensures that SSO is isolated, and authenticating in one app does not authenticate the user in the other apps.
Validate and Test the Configuration
Keep in mind that these steps may require discussions with your IT and infrastructure teams, especially if external identity providers are involved. For additional details on working with User Providers and SSO, you can refer to the official OutSystems documentation Single Sign-On.
Hello,
In the case of environment-level SSO, it is not possible to enable it for one application while disabling it for others within the same environment.
If you want a custom approach, you can configure the specific application to redirect users to a custom login page that is not associated with the built-in login mechanism or the configured Identity Provider.
So, to answer your question there’s no native OutSystems feature that allows enabling SSO for only one app within the same environment. I haven’t seen any official way to do that myself.
Hi @Sherif El-Habibi ,
If I remove the SSO configuration made in Users, is it possible to then enable the logic for the specific applications?
As far as I know, you can’t. When SSO is enabled, it applies to the entire environment, so every application in that environment benefits from it.
If you change the User Provider for a specific module, that’s a different story in that case, authentication isn’t handled through the standard Users module or the Identity Provider.
Which means it’s up to you to handle the SSO using your own custom mechanism or logic.