How do I sign operators in through a SAML 2.0 or OIDC identity provider?

As title says, how do I do it?

FrameworX 10.1.6 supports both standards. The OIDC single sign-on from 10.1.5 is still there, and SAML 2.0 sign-in is new in 10.1.6. Both are set up in the same place: Security → Identity Providers.

1. Add the identity provider

Create a row in Security → Identity Providers and set AuthType to OIDC or SAML. You can have several active OIDC and SAML rows in one solution. The edit dialog shows the fields for each type, so you never edit the packed AuthOptions string by hand.

  • OIDC: Authority (the IdP base URL, without /.well-known/openid-configuration), ClientId, ClientSecretRef (a /secret:<Name> reference to a Security Secrets row), RedirectUri (must end in /oidc/callback), Scopes, UsernameClaim and GroupsClaim.
  • SAML (10.1.6): IdpEntityId, IdpSsoUrl, IdpCertificate, SpEntityId, AcsUrl, UsernameClaim and GroupsClaim. The IdP must sign the assertion with SHA-256 or stronger. Encrypted assertions, single logout and sign-in started from the IdP portal are not supported.

On the LogOn Display, a Sign in with SSO button calls:

int rc = await @Client.LogOnSSOAsync("CorpEntraID");
if (rc != 0)
    @Client.UI.ShowMessageBox("SSO sign-in failed: " + rc);

The platform handles the whole round trip. On HTML5 it opens a popup. On the Rich Client and Smart Client it opens the system browser and listens on a loopback endpoint. No token handling goes in your solution.

2. How users map to permissions

The identity provider only answers who is logging in. Permission Groups, Policies, session timeout, e-sign and the audit trail stay in the solution.

  • The user exists in the solution (a Security User or a runtime user): from 10.1.6, that user’s own Permission Groups apply and the IdP’s group claims are ignored. The user gets the same permissions as with a password login.
  • The user does not exist in the solution: each value of the group claim is matched, case-sensitively, against your Permission Group names, and the first match wins. If nothing matches, the row’s DefaultPolicy applies (for example Operators). A group name with spaces, such as Domain Admins, also matches a Permission Group named Domain_Admins.

The simplest setup is to give your IdP groups the same names as your Permission Groups: Operators, Engineers, Supervisors.

3. Test it with a public identity provider

You can test end to end with a free Auth0 tenant:

  1. In Auth0, create a Regular Web Application and note the Domain, Client ID and Client Secret.
  2. Add http://localhost:3201/oidc/callback as an Allowed Callback URL.
  3. Save the client secret in Security → Secrets as Auth0ClientSecret.
  4. Add an Identity Provider row with Name Auth0, AuthType OIDC, and these options:
    Authority=https://<tenant>.auth0.com/;ClientId=<client-id>;ClientSecretRef=/secret:Auth0ClientSecret;RedirectUri=http://localhost:3201/oidc/callback;Scopes=openid,profile,email;UsernameClaim=email;DefaultPolicy=Operators
  5. Start the runtime, open the HTML5 client at http://localhost:3201, and click Sign in with SSO.

Two things to watch for:

  • RedirectUri must have the same scheme, host and port as the URL the client is opened from. localhost and 127.0.0.1 count as different.
  • Keep SSL checked. Uncheck it only for a development IdP served over plain HTTP, such as a local Keycloak, and never in production.

To see what happened at runtime, read @Security.IdentityProvider.Auth0.LastErrorMessage and .IsHealthy.

Docs: Security Identity Providers Reference. It also has full examples for Entra ID, Keycloak, login.gov, LDAP and PIV/smartcard.