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/appstore/use-content/platform-supported-content/modules/oidc.md
+17Lines changed: 17 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -899,12 +899,29 @@ Page URLs and Microflow URLs are supported with OIDC SSO for Mendix version 10.6
899
899
3. The user is redirected to the OIDC login page for authentication.
900
900
4. After successful log in, the user is directed to the desired page using page URLs and microflow URLs within the application.
901
901
902
+
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.
903
+
902
904
The Page and Microflow URLs fully support multiple IdPs, allowing users to trigger the login and choose the IdP on the OIDC login page.
903
905
For more information, see the [Migrating to Page and Microflow URLs](/appstore/modules/deep-link/#migrate-page-micro) section of the *Deep Link*.
904
906
905
907
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.
906
908
For more information, see the [URL](/refguide/microflow/#url) section of the *Microflow Properties*.
907
909
910
+
##### Steps for OIDC SSO Version v4.1.0 and above
911
+
912
+
In OIDC SSO version 4.1.0 and above, you do not have to enable anonymous users.
913
+
914
+
You can disable this setting by navigating to **Security > Anonymous users** and setting **Allow anonymous users** to **No**.
915
+
916
+
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`.
917
+
918
+
2. To implement the SSO redirection, replace the code in the `<script>` tag of your login page (for example, `login.html`) with one of the following pieces of code, depending on whether you want automatic or manual redirection:
919
+
920
+
* For automatic redirection, use `window.onload` to automatically redirect users to the SSO login page. `const returnURL = encodeURIComponent(window.location.search+window.location.hash);` `self.location = '/oauth/v2/login?cont='+returnURL;`
921
+
* For manual redirection: add an onclick event to the button that manually triggers the SSO login. `window.location.href='/oauth/v2/login?cont=' + encodeURIComponent(window.location.search + window.location.hash);`
922
+
923
+
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 log in, they will be directed to the desired page using page and microflow URLs.
0 commit comments