Skip to content

Commit 8fa9cd1

Browse files
Merge pull request mendix#10766 from mendix/kv-tw-2642
OIDC SSO: explain login-page and disabling local login TW-2642
2 parents 1b18303 + 634a9f7 commit 8fa9cd1

3 files changed

Lines changed: 7 additions & 20 deletions

File tree

content/en/docs/marketplace/platform-supported-content/modules/oidc.md

Lines changed: 7 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -233,40 +233,27 @@ Ensure that you have allocated the following user roles to the OIDC module and U
233233
| User Role | OIDC Module Role |
234234
| --- | --- |
235235
| Administrator | OIDC.Administrator, UserCommons.Administrator |
236-
| Anonymous | OIDC.Anonymous (for multiple IdPs only) |
237236
| User | OIDC.User |
238237

239-
{{< figure src="/attachments/appstore/platform-supported-content/modules/oidc/user-roles.png" class="no-border" >}}
238+
{{< figure src="/attachments/appstore/platform-supported-content/modules/oidc/user-roles.png" >}}
240239

241-
### User Roles for Single IdP
240+
### End User Login When Using Single or Multiple IdPs
242241

243-
If a single Identity Provider (IdP) is configured in the OIDC SSO module, end-users can be authenticated via the URL `https://<your-app-url>/oauth/v2/login` This means you do not need to configure the *Anonymous* user role for a single IdP.
242+
If a single Identity Provider (IdP) is configured in the OIDC SSO module, end users can be authenticated via the URL `https://<your-app-url>/oauth/v2/login`. When accessing the URL, users are automatically redirected to the configured IdP for authentication.
244243

245-
### Allowing Anonymous Users for Multiple IdPs (Optional)
244+
If multiple IdPs are configured in the OIDC module, the following two mechanisms are supported for selecting the IdP:
246245

247-
The OIDC module supports multiple OIDC/OAuth-compatible IdPs. Optionally, if you allow your end-users to choose from multiple IdPs, or to have the option to log back into the app after they have logged out, you will need to give them access to the app before they have signed in to the app. Therefore, you need to give anonymous users access to your app.
248-
249-
In the **Anonymous** tab of the app security settings, do the following:
250-
251-
1. Set **Allow anonymous users** to **Yes**
252-
2. Select *Anonymous* as the **Anonymous user role**
253-
254-
{{< figure src="/attachments/appstore/platform-supported-content/modules/oidc/anonymous-user.png" class="no-border" >}}
246+
1. Depending on deeplink, your application logic may redirect to a IdP-specific endpoint.
247+
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.
255248

256249
{{% alert color="info" %}}
257-
For multiple IdPs, you may have to add the *Anonymous* user role if it does not exist already.
258-
{{% /alert %}}
259-
260-
{{% alert color="warning" %}}
261-
Enabling anonymous users introduces a broader attack surface. If you choose this option, follow Mendix guidelines for [setting up anonymous user security](/howto/security/set-up-anonymous-user-security/) to mitigate potential risks.
250+
In OIDC SSO version 4.1.0 and above, you do not have to enable anonymous users for multiple IdPs. Additionally, check whether `Anonymous` user role can be removed from the app. If your application does not require anonymous access, removing the role is recommended as a security best practice.
262251
{{% /alert %}}
263252

264253
### Configuring Navigation{#configure-nav}
265254

266255
The OIDC SSO module works without a specified sign-in page. Therefore, in the navigation section of your app, set **Sign-in page** (in the **Authentication** section) to *none*.
267256

268-
If you are configuring navigation for web/responsive apps and want to allow your end-users to choose from a number of different IdPs (multiple IdPs), or to have the option to sign in back into the app after they have signed out, set a **Role-based home page** for role **Anonymous** to **OIDC.Login_Web_Button**. When configuring navigation for PWA apps, set the **Role-based home page** for the **Anonymous** role to `OIDC.Login_PWA_Online_Button` for online apps and `Login_PWA_Offline_Button` for offline apps. See [Role-Based Home Pages](/refguide/navigation/#role-based) in *Navigation* for more information.
269-
270257
In addition, administrators will need to have access to configure OIDC and also manage end-users. You can do this by including the pages `Administration.Account_Overview` and `OIDC.OIDC_Client_Overview` into the app navigation, or a separate administration page.
271258

272259
If you are testing phone web and phone web offline locally, use the URLs `http://localhost:8080/?profile=Phone` and
71.8 KB
Loading
6.55 KB
Loading

0 commit comments

Comments
 (0)