You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/en/docs/marketplace/platform-supported-content/modules/oidc.md
+13-30Lines changed: 13 additions & 30 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -249,8 +249,8 @@ If multiple IdPs are configured in the OIDC module, the following two mechanisms
249
249
1. Depending on deeplink, your application logic may redirect to a IdP-specific endpoint.
250
250
2. In this mechanism, your end users make the selection. Your app logic can use the same URL (`<your-app-url>/oauth/v2/login`) to initiate authentication. End users will first be redirected to an IdP selection page, where they can choose the IdP they want to use for authentication.
251
251
252
-
{{% alert color="info" %}}
253
-
From version 4.5.0, the `Anonymous` module role has been removed from the module and is no longer available.
252
+
{{% alert color="warning" %}}
253
+
From version 4.5.0, the `Anonymous` module role has been removed from the module and is no longer available. If you are using the module below V4.5.0 and `Anonymous` module role is enabled, configure **Role-based home page** and **Sign-in page** of the **Authentication** section to *none*.
254
254
{{% /alert %}}
255
255
256
256
### Configuring Navigation{#configure-nav}
@@ -990,20 +990,24 @@ For all versions of the OIDC SSO module, once you have created the microflow (fo
990
990
If your microflow is not correctly implemented you will be told that **Authentication failed!** and will see errors in the log under the OIDC log node.
991
991
{{% /alert %}}
992
992
993
-
### Using Deep Links
993
+
### Configuring Login Redirection
994
+
995
+
This section describes how to configure the application's `login.html` page to initiate authentication using the OIDC SSO module. By default, the Mendix `login.html` page does not automatically start the OIDC authentication flow. To enable users to sign in with an OIDC identity provider, you can configure the login page to either automatically redirect users to the identity provider or allow users to choose between local authentication and OIDC SSO.
996
+
997
+
#### Automatic Redirection
994
998
995
-
If end-users who use the deeplink do not yet have a session in your app, the deeplink can trigger the SSO process. If successful, the end-user will be automatically redirected back to the deeplink.
999
+
To enable authentication using the OIDC SSO module, replace the default `login.html` with the content of <a href="/attachments/appstore/platform-supported-content/modules/oidc/login-automatic.txt" target="_blank">login-automatic.txt</a> file and save it as `login.html`. Use this option when all users should be directly redirected to the OIDC Identity Provider.
996
1000
997
-
For more information on using Deep Link module (with Mendix 9), see the [Using Deep Link Module](#using-deep-link) section below.
1001
+
#### Manual Redirection
1002
+
1003
+
For manual redirection, replace the default `login.html` with the content of <a href="/attachments/appstore/platform-supported-content/modules/oidc/login-manual.txt" target="_blank">login-manual.txt</a> file and save it as `login.html`. Use this option when users should choose between login in using local credentials and login via OIDC SSO.
998
1004
999
1005
#### Using Page and Microflow URLs with OIDC SSO{#page-microflow-url}
1000
1006
1001
1007
Page URLs and Microflow URLs are supported with OIDC SSO for Mendix version 10.6 and above. To do this, follow the steps below:
1002
1008
1003
-
1. In the **Runtime** tab of the **App Settings**, configure the page **URL prefix** to **link** instead of the default **P** to maintain compatibility with existing URLs, and ensure to remove the Deep Link module from your app to start the app successfully.
1004
-
2. Configure **OIDC.Login_Web_Button** as the **Sign-in page** in the **Authentication** section of the app **Navigation**.
1005
-
3. The user is redirected to the OIDC login page for authentication.
1006
-
4. After successful log in, the user is directed to the desired page using page URLs and microflow URLs within the application.
1009
+
1. Redirect users to the OIDC authentication flow using either automatic or manual redirection, allowing them to authenticate through the OIDC login page.
1010
+
2. After successful login, the user is directed to the desired page using page URLs and microflow URLs within the application.
1007
1011
1008
1012
If you are building a new app using the OIDC SSO module (Mendix version 10.6 and above) and you are using Page URLs and Microflow URLs, follow the same steps as above.
1009
1013
@@ -1013,27 +1017,6 @@ For more information, see the [Migrating to Page and Microflow URLs](/appstore/m
1013
1017
Starting from Studio Pro 10.9.0, you can use the primitive parameters as **Query string** parameters in microflows. Check the checkbox in the parameter table to configure a microflow parameter to use as a **Query string** parameter.
1014
1018
For more information, see the [URL](/refguide/microflow/#url) section of the *Microflow Properties*.
1015
1019
1016
-
##### Steps for OIDC SSO Version v4.1.0 and above
1017
-
1018
-
In OIDC SSO version 4.1.0 and above, you do not have to enable anonymous users. You can disable this setting by navigating to **Security > Anonymous users** and setting **Allow anonymous users** to **No**. However, from version 4.5.0 of the module, this role has been removed from the module.
1019
-
1020
-
1. To use the Page URL functionality, replace the content of `login.html` with the content of `login-with-mendixsso-automatically.html` (located in the `resources\mendixsso\templates` folder) and save it as `login.html`.
1021
-
1022
-
2. To implement the SSO redirection, you will need to replace the code in the `<script>` tag of your login page (for example, `login.html`) with code which does one of the following, depending on whether you want automatic or manual redirection:
1023
-
1024
-
* For automatic redirection, you can use `window.onload` to automatically redirect users to the SSO login page. You could, for example, use the following code:
* For manual redirection, you can use the same code above and add an onclick event to a button that manually triggers the SSO login.
1034
-
1035
-
Once the above changes are applied, end users can directly navigate to the desired page. If not logged in, they will be redirected to the IdP login page for authentication. After successful login, they will be directed to the desired page using page and microflow URLs.
0 commit comments