What's new in V2
If you are migrating over from Corppass Authorization API V1, here is a quick summary of all the new changes introduced in V2.
Pushed Authorization Request (PAR) Flow
For added security, it is now mandatory for all RPs to implement the PAR flow, and initiate authentication using the backchannel request, PAR.
See Authorization Endpoint for more information.
Proof Key of Code Exchange (PKCE)
For added security, it is mandatory for all RPs to implement PKCE when performing the PAR flow.
See Proof Key of Code Exchange for more information.
Demonstrating Proof of Possession (DPoP)
For added security, it is mandatory for all RPs to send a DPoP Proof JWT for
PAR request
Token request
Subsequent calls to protected resource endpoints (eg. Userinfo Endpoint)
See Demonstrating Proof of Possession (DPoP) for more information.
Authorization Context Parameters
The following parameters have been introduced to help contextualize each authentication request:
authentication_context_type
(Mandatory)authentication_context_message
(Optional)
See Authorization Endpoint - Request Body and Authentication Context Parameters for more information.
New Scopes
New scope:
auth_info
tp_auth_info
sub_account
business_profile.email
See Scopes for more information.
Changes to ID Token Structure
Changes to the following claims:
sub
claim value now be the entity's UEN (or Corppass-issued entity identifier for non-uen entities)New
act
claimNew
sub_account
claim
See ID Token Structure for more information.
Changes to Authorization Info Endpoint
The Authorization Info Endpoint will be replaced by the Userinfo Endpoint. Relying parties should use the URL path as specified on Corppass OpenID Discovery Endpoint under "userinfo_endpoint"
.
There are some slight tweaks to the response payload structure as well.
See Userinfo Endpoint - Response Structure for more information.
Stricter TTL requirements
The maximum accepted client assertion lifespan is reduced from 10mins to 2mins. Read more here.
The expiry of authorization code is reduced from 10mins to 1min.
Changes to Error Handling
Relying parties must now implement error handling logic on their callback/redirect URLs to handle new error query parameters that will be returned after failures on the Authorisation Endpoint.
See Authorization Endpoint - Error Response for more information.
Last updated