Follow

SSO: Populi as Identity Provider (IdP)

Populi supports SAML 2.0 single sign-on as either a Service Provider (SP) or Identity Provider (IdP). This article covers the IdP setup.

  • When functioning as an identity provider, Populi accepts incoming authentication requests and provides a login page. When the user has successfully authenticated, Populi will redirect them back to your external application.
  • When functioning as a service provider, Populi won't store user passwords and will instead redirect users to your SAML 2.0 Identity Provider instead. Once the user has authenticated on your system, they will be redirected back to Populi where we will validate the response and then allow them access.
  • You cannot use Populi as both Identity Provider and Service Provider: it has to be either the authoritative source for user credentials or it has to look to an external system, but not both.
  • To set up SSO, you need to have Account Admin privileges to your school's Populi account.

Populi as Identity Provider (IdP)

idp
  • If your application needs to authenticate against user accounts stored in Populi, use the metadata URL (in XML format) found at https://yourcollege.populiweb.com/router/saml/idp/metadata.
  • Its IdP certificate can be found at https://yourcollege.populiweb.com/router/account/sso_idp_cert.
  • If you want to use Google Apps for Education through Populi, our support team will set up Google Apps to use Populi as an Identity Provider as part of the integration.

Setup

To set up Populi as an IdP, you'll provide information about the service providers you wish to authenticate against Populi user accounts.

  1. Go to Account > Integrations.
  2. Click Add Integration.
  3. Under Built-in Integrations, select SSO (Identity Provider).
  4. Review the metadata URL and Identity Provider Certificates. You'll use these to configure your external service providers. See Updating SAML Certificates in Populi for certificate-rotation instructions.
  5. Review Populi's Entity ID:
    • New configurations use an organization-specific default such as yourschool.populi.co.
    • Existing configurations may retain the legacy populi.co Entity ID so that established integrations continue working.
    • The saved value persists even if your school's Populi subdomain changes. Do not change it without also updating every service provider that uses it.
  6. Under Should other applications be allowed to authenticate against Populi?, choose the appropriate access level:
    • Never let other applications authenticate: Prevents Populi from being used as an Identity Provider.
    • Choose which applications can authenticate: Lets you register and configure individual service providers.
    • Always let other applications authenticate: Allows any application to authenticate against Populi. This option may be present only on existing configurations; registering specific service providers provides more control.
  7. Click Add a Service Provider, or open an existing service provider to edit it.
  8. Complete the settings below, then click Add Service Provider or Save Service Provider. Save the main SSO integration as well.

Service provider settings

  • Name: The name by which you'll identify this service provider within Populi.
  • Metadata URL: If the service provider publishes SAML metadata, enter its URL and click Import. Populi can fill in the Entity ID, signing certificates, Consumer URLs, NameID format, logout redirect URL, and encryption certificate when those values are present in the metadata. Review the imported values and save the service provider to confirm them. The import is on demand rather than a continuous synchronization; you can import from the saved URL again when the service provider rotates certificates or changes its configuration.
  • Entity ID: This must exactly match the service provider's SAML entityID.
  • Verify Signature of SP Requests: Select Yes to verify signed requests from this service provider. At least one signing certificate is required when verification is enabled.
  • X509 Signing Certificates: Paste one or more PEM-encoded X.509 certificates used to verify the service provider's signatures. Click Add new certificate to add another certificate. Multiple certificates let Populi accept signatures during certificate rotation while both the old and new certificates are in use.
  • Consumer URLs: Enter one URL per line to restrict the locations to which Populi sends responses. This helps prevent man-in-the-middle attacks. This setting is ignored for signed requests because the service provider's identity has already been verified.
  • Status: Set the application to Active or Inactive.
  • SAML Signature: Choose Message Only (default), Assertions Only, or Message and Assertions.
  • Signature Algorithm: Choose RSA SHA-1, RSA SHA-256 (default), or RSA SHA-512 for Populi's outgoing signed SAML messages.
  • Encryption Algorithm: Choose No encryption (default), AES-128-CBC, AES-128-GCM, or AES-256-GCM. This controls encryption of the user data Populi sends to this service provider.
  • Encryption Scope: When encryption is enabled, choose whether to encrypt All Assertions or the Name ID Only.
  • X509 Encryption Certificate: When encryption is enabled, paste the public certificate the service provider wants Populi to use. Populi encrypts with this certificate, and the service provider decrypts with its corresponding private key. Metadata import can fill in this field when the metadata includes an encryption certificate.
  • NameId Format: Choose Email Address (default), Unspecified, Persistent, or Transient. Use the adjacent template field to customize the NameID value. The default template is {user_name}@{domain}; see the variables below.
  • Who can use this SP? Allow All Populi users, or select Only Populi users with at least one of these roles and choose the permitted roles. A restricted user must have at least one selected role to authenticate through this service provider.
  • Logout Redirect URL: To send users somewhere other than the school's Populi login page after logout, enter that URL here. For an existing service provider, Populi also displays the logout URL you need to configure on the service provider's side.

SAML attributes

Use Add Attribute to choose a standard attribute or create a custom one. Standard attributes include pre-filled names and value templates, which you can review before saving.

  • inetOrgPerson: displayName, givenName, initials, mail, sn, and uid.
  • eduPerson: eduPersonAffiliation, eduPersonPrimaryAffiliation, eduPersonPrincipalName, eduPersonScopedAffiliation, and eduPersonNickname.
  • Populi: populiId and populiRoles.
  • Custom Attribute: Enter the attribute name required by the service provider and a value. Names can be ordinary names, OIDs, URNs, or URLs. Values can contain plain text, one or more Populi variables, or a combination of both.

New service providers include the standard givenName, mail, sn, and uid attributes by default. Existing service providers may instead retain legacy attributes such as FirstName, LastName, Email, and PopuliID to preserve their integrations. Do not remove legacy attributes unless you know the service provider no longer requires them.

Variables

The following options are available for most variables:

  • width
  • padding=left|right
  • padding_char
  • case=upper|lower changes the case of the resulting value.
  • Example: {populi_id:width=20,padding=left,padding_char=0}

Important identifiers like username or populi_id will ignore truncation rather than be shortened, but names can be truncated.

Multiple variables can be combined in a single SAML attribute value: {first_name:width=1}. {user_name}@{domain}

Available Variables:

  • {user_name} Example: johndoe123
  • {domain} Example: yourschool.edu If your school has multiple domains, this will be the one associated with this user.
  • {first_name} Example: John
  • {last_name} Example: Doe
  • {preferred_name} Example: Johnny
  • {display_name} Example: John "Johnny" Doe, Jr.
  • {initials} Example: JJD
  • {populi_id} Example: 997844
  • {student_id} Example: DOE202600001
  • {roles} All the Populi roles for a user, for example: [student_billing, faculty]. This is a repeating SAML attribute when used by itself. Use {roles:case=upper} if the service provider requires uppercase role names.
  • {edu_affiliation} Some mix of standard eduPerson roles: [faculty, staff, student, member]. If a user is faculty, staff, or student, then they also get member. This is a repeating SAML attribute when used by itself.
  • {edu_scoped_affiliation} Some mix of standard eduPerson roles: [faculty@yourdomain.edu, staff@yourdomain.edu, student@yourdomain.edu, member@yourdomain.edu]. This is a repeating SAML attribute when used by itself.
  • {edu_primary_affiliation} The first or "highest" role from the user's list of edu_affiliation roles above.
  • {uuid} Example: A random UUID that changes for each SAML request.
  • {random} A random integer which changes for each SAML request. 10 digits long by default, but can be changed with the width option.
Was this article helpful?
1 out of 1 found this helpful
Have more questions? Submit a request

0 Comments

Article is closed for comments.