Interface Specifications
This document describes the interfaces between Edupass and applications that wish to use Edupass for authentication & authorisation (henceforth referred to as Relying Parties (RPs)). Specific values, such as endpoint URLs and client IDs, will be provided during application registration and onboarding.
Concepts
Identity-Centricity
Edupass aims to be identity-centric to make identity and access management in MOE easier. Rather than thinking in terms of accounts, Edupass will provide an abstraction over accounts in the form of identity. Each (human) Edupass identity is backed by a unique UIN/FIN that has been validated against ICA and MOM data. In most cases, it is expected that each Edupass user will have exactly one Edupass identity.
Exception: Users Changing Between UIN & FIN
There are multiple scenarios in which a user changes between a UIN and a FIN. For example, a foreigner that gains permanent residency will have their FIN replaced by a UIN. When this happens, Edupass relies on our upstream sources of truth to communicate the UIN/FIN change. The UIN/FIN associated with the user’s Edupass identity will be seamlessly updated, with no changes made to the Edupass ID that is used by relying parties to identify the Edupass identity.
Should upstream sources of truth fail to communicate the UIN/FIN change in a timely manner, it is possible that the same user has another Edupass identity created that is backed by their new UIN/FIN. This means that users could temporarily have 2 Edupass identities, until Edupass is made aware of the UIN/FIN change by ICA and MOM. Once Edupass becomes aware of the UIN/FIN change, Edupass will merge both Edupass identities together under the Edupass ID of the older identity.
Non-Human Identities
Certain relying parties might require additional Edupass identities that are not tied to a UIN/FIN. Edupass provisions for such use cases through non-human identities, which are Edupass identities that do not have a UIN/FIN.
Non-human identities should not be used as shared/generic accounts as doing so eliminates accountability.
Identity Types
Edupass contains the following types of identities:
These identity types are mutually exclusive & comprehensively exhaustive. The leaf nodes (bolded) in the diagram above form the possible values of the “Identity Type” attribute.
User Schema
Variable-length attributes have a maximum length limit of 256 characters. This limit also applies to each application role name.
[1] For SCIM, emails will be a list of objects with the following structure:
Application Roles
Many applications used by schools such as School Cockpit and SLS are effectively multi-tenant applications, where each school manages its own data and user access. In order to support users who work in multiple schools and might have different permission levels in each school, Edupass will introduce location-scoped application roles.
In Edupass, there will be 2 types of application roles:
- Global roles not scoped to a specific location
- Location-specific roles, which will only apply at the specified location. For example,
1730_AE_adminis an application admin role for the school with school code 1730 (Naval Base Primary School)
Both global and location-specific roles will be encoded in the following format: <location code>_<app code>_<role code>. For global roles, X will be used as the location code.
To create application roles in Edupass, RPs will have to provide the following details for each role:
- Code: Short code to be used as the role’s identifier. Included as
<role code>in the value given to the RP. - Description: Text explaining what the role is for
- Role type: Global or Location-specific
- RPs can specify if each location-specific role should be restricted to a subset of locations in MOE. For example, location-specific roles for school-based applications like SLS may only be applicable to schools. Edupass will extend the location-scoped roles to the applicable locations in MOE.
Overview of Interfaces
Edupass makes use of the following industry standards to provide the information necessary for relying parties (RPs) to authenticate and authorise Edupass identities across the following use cases:
- Authentication & authorisation - Verifies the identity of users and provides basic profile information of users, along with their roles, to relying parties.
- Relying party account management - Manages the lifecycle of user accounts in relying parties.
While all relying parties are expected to implement use case 1, use case 2 is not necessary for relying parties which can work with the just-in-time (JIT) information provided on user login.
Authentication & Authorisation
Edupass supports both OpenID Connect (OIDC) and Security Assertion Markup Language (SAML) for authentication & authorisation.
OpenID Connect (OIDC)
See the OIDC specification.
Security Assertion Markup Language (SAML)
See the SAML specification.
Relying Party Account Management
For relying parties (RP) in which the just-in-time (JIT) information provided by OIDC/SAML is insufficient, integration via the System for Cross-domain Identity Management (SCIM) protocol is available.
System for Cross-domain Identity Management (SCIM)
See the SCIM specification.
Changelog
See the Changelog for the version history of these specifications.