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
### End User Login When Using Single or Multiple IdPs
242
241
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, endusers 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.
244
243
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:
246
245
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**
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.
255
248
256
249
{{% 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.
262
251
{{% /alert %}}
263
252
264
253
### Configuring Navigation{#configure-nav}
265
254
266
255
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*.
267
256
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
-
270
257
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.
271
258
272
259
If you are testing phone web and phone web offline locally, use the URLs `http://localhost:8080/?profile=Phone` and
0 commit comments