@opengovsg/mockpass 2.9.4 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +1 -20
- package/lib/assertions.js +9 -98
- package/lib/crypto/myinfo-signature.js +1 -82
- package/lib/express/index.js +0 -1
- package/lib/express/myinfo/consent.js +3 -15
- package/lib/express/myinfo/controllers.js +4 -10
- package/lib/express/myinfo/index.js +1 -2
- package/package.json +1 -4
- package/lib/crypto/index.js +0 -61
- package/lib/express/saml.js +0 -195
- package/lib/saml-artifact.js +0 -39
- package/static/myinfo/v2.json +0 -6154
- package/static/saml/corppass.xml +0 -21
- package/static/saml/unsigned-assertion.xml +0 -24
- package/static/saml/unsigned-response.xml +0 -19
package/static/saml/corppass.xml
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
<UserInfo>
|
|
2
|
-
<CPUID>{{ nric }}</CPUID>
|
|
3
|
-
<CPEntID>{{ uen }}</CPEntID>
|
|
4
|
-
</UserInfo>
|
|
5
|
-
<AuthAccess>
|
|
6
|
-
<Result_Set>
|
|
7
|
-
<ESrvc_Row_Count>1</ESrvc_Row_Count>
|
|
8
|
-
<ESrvc_Result>
|
|
9
|
-
<CPESrvcID>SPCP-TEST</CPESrvcID>
|
|
10
|
-
<Auth_Result_Set>
|
|
11
|
-
<Row_Count>1</Row_Count>
|
|
12
|
-
<Row>
|
|
13
|
-
<CPEntID_SUB>NULL</CPEntID_SUB>
|
|
14
|
-
<CPRole>NULL</CPRole>
|
|
15
|
-
<StartDate>2018-08-13</StartDate>
|
|
16
|
-
<EndDate>9999-12-31</EndDate>
|
|
17
|
-
</Row>
|
|
18
|
-
</Auth_Result_Set>
|
|
19
|
-
</ESrvc_Result>
|
|
20
|
-
</Result_Set>
|
|
21
|
-
</AuthAccess>
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
<saml:Assertion xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xs="http://www.w3.org/2001/XMLSchema" ID="_d71a3a8e9fcc45c9e9d248ef7049393fc8f04e5f75" xmlns:saml="urn:oasis:names:tc:SAML:2.0:assertion" Version="2.0" IssueInstant="{{issueInstant}}">
|
|
2
|
-
<saml:Issuer>{{issuer}}</saml:Issuer>
|
|
3
|
-
<saml:Subject>
|
|
4
|
-
<saml:NameID Format="urn:ibm:names:ITFIM:5.1:accessmanager">{{value}}</saml:NameID>
|
|
5
|
-
<saml:SubjectConfirmation Method="urn:oasis:names:tc:SAML:2.0:cm:bearer">
|
|
6
|
-
<saml:SubjectConfirmationData NotOnOrAfter="2224-01-18T06:21:48Z" Recipient="{{recipient}}" InResponseTo="{{inResponseTo}}"/>
|
|
7
|
-
</saml:SubjectConfirmation>
|
|
8
|
-
</saml:Subject>
|
|
9
|
-
<saml:Conditions NotBefore="2014-07-17T01:01:18Z" NotOnOrAfter="2224-01-18T06:21:48Z">
|
|
10
|
-
<saml:AudienceRestriction>
|
|
11
|
-
<saml:Audience>{{audience}}</saml:Audience>
|
|
12
|
-
</saml:AudienceRestriction>
|
|
13
|
-
</saml:Conditions>
|
|
14
|
-
<saml:AuthnStatement AuthnInstant="{{issueInstant}}" SessionNotOnOrAfter="2224-07-17T09:01:48Z" SessionIndex="_be9967abd904ddcae3c0eb4189adbe3f71e327cf93">
|
|
15
|
-
<saml:AuthnContext>
|
|
16
|
-
<saml:AuthnContextClassRef>urn:oasis:names:tc:SAML:2.0:ac:classes:PasswordProtectedTransport</saml:AuthnContextClassRef>
|
|
17
|
-
</saml:AuthnContext>
|
|
18
|
-
</saml:AuthnStatement>
|
|
19
|
-
<saml:AttributeStatement>
|
|
20
|
-
<saml:Attribute Name="{{name}}" NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:basic">
|
|
21
|
-
<saml:AttributeValue xsi:type="xs:string">{{value}}</saml:AttributeValue>
|
|
22
|
-
</saml:Attribute>
|
|
23
|
-
</saml:AttributeStatement>
|
|
24
|
-
</saml:Assertion>
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<soap11:Envelope xmlns:soap11="http://schemas.xmlsoap.org/soap/envelope/">
|
|
3
|
-
<soap11:Body>
|
|
4
|
-
<samlp:ArtifactResponse xmlns:samlp="urn:oasis:names:tc:SAML:2.0:protocol"
|
|
5
|
-
xmlns:saml="urn:oasis:names:tc:SAML:2.0:assertion" ID="_8e8dc5f69a98cc4c1ff3427e5ce34606fd672f91e6" Version="2.0" IssueInstant="{{issueInstant}}" Destination="{{destination}}" InResponseTo="{{inResponseTo}}">
|
|
6
|
-
<saml:Issuer>{{issuer}}</saml:Issuer>
|
|
7
|
-
<samlp:Status>
|
|
8
|
-
<samlp:StatusCode Value="urn:oasis:names:tc:SAML:2.0:status:Success"/>
|
|
9
|
-
</samlp:Status>
|
|
10
|
-
<samlp:Response ID="_8e8dc5f69a98cc4222227e5ce34606fd672f91e6" Version="2.0" IssueInstant="{{issueInstant}}" Destination="{{destination}}">
|
|
11
|
-
<saml:Issuer>{{issuer}}</saml:Issuer>
|
|
12
|
-
<samlp:Status>
|
|
13
|
-
<samlp:StatusCode Value="urn:oasis:names:tc:SAML:2.0:status:Success"/>
|
|
14
|
-
</samlp:Status>
|
|
15
|
-
{{{ assertion }}}
|
|
16
|
-
</samlp:Response>
|
|
17
|
-
</samlp:ArtifactResponse>
|
|
18
|
-
</soap11:Body>
|
|
19
|
-
</soap11:Envelope>
|