For AI agents: the complete documentation index is available at /llms.txt, the full documentation bundle is available at /llms-full.txt, and this page is available as Markdown at /specs/index.md.

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.

Warning

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:

Edupass identity types

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.

Identity TypeDescription
Non-humanEdupass identities which are not associated with any UIN/FIN.
StudentStudents in MOE schools. This includes government or government-aided schools, independent schools, and special education (SPED) schools.
StaffStaff working in an official capacity within MOE. This includes MOE-hired staff, school direct hires, and staff seconded to MOE from other government agencies.
TempShort-term staff hired by MOE schools or HQ on a temporary basis. Examples:
- Augmented resources which are hired through recruitment agencies
- Relief teachers
- Temporary admin staff
- Contract staff filling in for someone on leave
InternPeople on internship in MOE.
VendorExternal service providers or contractors that work with MOE by providing specific services or maintaining and supporting products as part of a project/tender
OthersThis is a catch-all category for users who don’t fit into employment or partnership types.

User Schema

Info

Variable-length attributes have a maximum length limit of 256 characters. This limit also applies to each application role name.

Attribute name (human-readable)Attribute name (OIDC claims)Attribute name (SAML claims)Attribute name (SCIM User)Nullable?Attribute descriptionAttribute format (RegEx syntax)
Edupass IdentifierididexternalIdNoThe immutable identifier for an Edupass identity. This ID uniquely identifies the Edupass identity across all relying parties and cannot be reassigned or reused.
- Multiple Edupass accounts that belong to the same Edupass identity will have the same Edupass ID.
^[0-9]{12}$
Identity TypeidentityTypeidentitytypeidentityTypeNoThe type of the Edupass identity. One of the following:
1. Non-human
2. Student
3. Staff
4. Temp
5. Intern
6. Vendor
7. Others
See Identity Types for details on each identity type.
^(Non-human|Student|Staff|Temp|Intern|Vendor|Others)$
Namenamenamename-> formattedNoThe name of the user associated with the Edupass identity.
- For human identities, the name will be the full name as per NRIC.
- For non-human identities, the name will be a label that states its purpose.
^.*$
UIN/FIN
* RPs can ask for this field to be excluded
uinFinuinfinuinFinYes (No if we exclude non-human identities)The Unique Identification Number (UIN) / Foreign Identification Number (FIN) associated with the Edupass identity.
- Human identities will always have a UIN/FIN.
- Non-human identities will never have a UIN/FIN.
^[STFGM]\d{7}[A-Z]$
School or HQschoolOrHqschoolorhqschoolOrHqYes (No if we exclude non-human identities)Whether the user associated with the Edupass identity reports to a school or HQ Branch.
- Human identities will always be associated with either a school or HQ branch.
- Non-human identities will never be associated with either a school or HQ branch as they do not have a reporting location.
RPs should avoid using this attribute for access control as a person’s application access locations could differ from their reporting location. HQ-level or school-level application access should instead be determined by application roles, which can be assigned automatically by birthright.
Note: This field may be deprecated in future.
^(School|HQ)$
Job TitletitletitletitleYesThe job title of the user associated with the Edupass identity.
- Non-human & student identities will never have a job title.
^.*$
Notification Email AddressnotificationEmailnotificationemailemails[1]
email object with primary:true
YesThe email address used for communication purposes. Relying parties that need to communicate with users via email should use this attribute.
- The notification email address is not necessarily an official MOE/government email address.
- Student identities will have the iCON email address as the notification email address.
- Primary school students might not have a mailbox attached to their iCON email address; emails sent to them might bounce.
^[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,}$
WOG Email AddresswogEmailwogemailemails[1]YesThe Whole-of-Government (WOG) email address, i.e., <agency>.gov.sg, of the user associated with the Edupass identity.
- Student identities will never have a WOG email address.
^[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.gov\.sg$
CES Email AddresscesEmailcesemailemails[1]YesThe Classified Email System (CES) email address, i.e., schools.gov.sg, of the user associated with the Edupass identity.
- Student identities will never have a CES email address.
^[A-Za-z0-9._%+-]+@schools\.gov\.sg$
iCON Email AddressiconEmailiconemailemails[1]Yes (No for student identities)The Individualised Connectivity (iCON) email address, i.e., moe.edu.sg or students.edu.sg, of the user associated with the Edupass identity.
- Staff iCON email addresses have the domain moe.edu.sg.
- Student iCON email addresses have the domain students.edu.sg.
- Primary school students might not have a mailbox attached to their iCON email address; emails sent to them might bounce.
^[A-Za-z0-9._%+-]+@(moe|students)\.edu\.sg$
Application RolesgroupsgroupsN/A. Will be sent using the Group resource instead.No. Will be an empty list if there are no assigned application rolesList of application roles specific to the RP.
See Application Roles for details.
Identity SourceidentitySourceidentitysourceidentitySourceNoThe source of this identity’s core information (Name, UIN/FIN, Job Title).^(HRPS|SC|MIMS)$

[1] For SCIM, emails will be a list of objects with the following structure:

{
  "value": "john_tan@moe.edu.sg",
  "type": One of "WOG", "ICON", "CES" or "OTHER"
  "primary": boolean # true for notification email, false otherwise
}

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:

  1. Global roles not scoped to a specific location
  2. Location-specific roles, which will only apply at the specified location. For example, 1730_AE_admin is 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:

  1. Code: Short code to be used as the role’s identifier. Included as <role code> in the value given to the RP.
  2. Description: Text explaining what the role is for
  3. Role type: Global or Location-specific
    1. 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:

  1. Authentication & authorisation - Verifies the identity of users and provides basic profile information of users, along with their roles, to relying parties.
  2. Relying party account management - Manages the lifecycle of user accounts in relying parties.
Note

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.