@idp.global/interfaces 26.1.0 → 26.3.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/changelog.md +18 -0
- package/dist_ts/00_commitinfo_data.js +1 -1
- package/dist_ts/data/registrationsession.d.ts +5 -0
- package/dist_ts/request/authorization.d.ts +42 -0
- package/dist_ts/request/registration.d.ts +20 -0
- package/package.json +2 -2
- package/readme.md +12 -0
- package/ts/00_commitinfo_data.ts +1 -1
- package/ts/data/registrationsession.ts +5 -0
- package/ts/request/authorization.ts +62 -0
- package/ts/request/registration.ts +20 -0
package/changelog.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 2026-07-27 - 26.3.0
|
|
4
|
+
|
|
5
|
+
### Features
|
|
6
|
+
|
|
7
|
+
- preserve opaque OIDC authorization across registration (registration)
|
|
8
|
+
- Add an optional transaction identifier to registration start and server-side registration-session data.
|
|
9
|
+
- Return the authoritative stored transaction only after email proof and at registration completion so clients can resume the existing authenticated OIDC handoff.
|
|
10
|
+
|
|
11
|
+
## 2026-07-25 - 26.2.0
|
|
12
|
+
|
|
13
|
+
### Features
|
|
14
|
+
|
|
15
|
+
- add opaque OIDC authorization transaction inspection, completion, and denial contracts
|
|
16
|
+
- add opaque OIDC authorization V2 contracts (oidc-authorization)
|
|
17
|
+
- Adds inspect, prepare, complete, and deny V2 typed request interfaces for OIDC authorization flows.
|
|
18
|
+
- Models one-time transactionId handoff so OAuth request data can remain server-side.
|
|
19
|
+
- Documents the OIDC V2 opaque browser handoff in the README and changelog.
|
|
20
|
+
|
|
3
21
|
## 2026-07-23 - 26.1.0
|
|
4
22
|
|
|
5
23
|
### Features
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
export const commitinfo = {
|
|
5
5
|
name: '@idp.global/interfaces',
|
|
6
|
-
version: '26.
|
|
6
|
+
version: '26.3.0',
|
|
7
7
|
description: 'Shared TypeScript interfaces and TypedRequest contracts for the idp.global ecosystem.'
|
|
8
8
|
};
|
|
9
9
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMDBfY29tbWl0aW5mb19kYXRhLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vdHMvMDBfY29tbWl0aW5mb19kYXRhLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOztHQUVHO0FBQ0gsTUFBTSxDQUFDLE1BQU0sVUFBVSxHQUFHO0lBQ3hCLElBQUksRUFBRSx3QkFBd0I7SUFDOUIsT0FBTyxFQUFFLFFBQVE7SUFDakIsV0FBVyxFQUFFLHVGQUF1RjtDQUNyRyxDQUFBIn0=
|
|
@@ -12,6 +12,11 @@ export interface IRegistrationSession {
|
|
|
12
12
|
* Remaining code verification attempts before the session is invalidated.
|
|
13
13
|
*/
|
|
14
14
|
codeAttemptsRemaining: number;
|
|
15
|
+
/**
|
|
16
|
+
* Opaque pending OIDC authorization transaction retained server-side.
|
|
17
|
+
* It is never embedded in registration email links.
|
|
18
|
+
*/
|
|
19
|
+
oidcTransactionId?: string;
|
|
15
20
|
status: TRegistrationSessionStatus;
|
|
16
21
|
validUntil: number;
|
|
17
22
|
createdAt: number;
|
|
@@ -42,3 +42,45 @@ export interface IReq_PrepareOidcAuthorization extends plugins.typedRequestInter
|
|
|
42
42
|
grantedScopes: TOidcScope[];
|
|
43
43
|
};
|
|
44
44
|
}
|
|
45
|
+
/**
|
|
46
|
+
* Opaque authorization handoff. The browser receives only the one-time
|
|
47
|
+
* transaction identifier; all OAuth request data remains server-side.
|
|
48
|
+
*/
|
|
49
|
+
export interface IReq_InspectOidcAuthorizationV2 extends plugins.typedRequestInterfaces.implementsTR<plugins.typedRequestInterfaces.ITypedRequest, IReq_InspectOidcAuthorizationV2> {
|
|
50
|
+
method: 'inspectOidcAuthorizationV2';
|
|
51
|
+
request: {
|
|
52
|
+
transactionId: string;
|
|
53
|
+
};
|
|
54
|
+
response: {
|
|
55
|
+
prompt: 'none' | 'login' | 'consent' | null;
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
export interface IReq_PrepareOidcAuthorizationV2 extends plugins.typedRequestInterfaces.implementsTR<plugins.typedRequestInterfaces.ITypedRequest, IReq_PrepareOidcAuthorizationV2> {
|
|
59
|
+
method: 'prepareOidcAuthorizationV2';
|
|
60
|
+
request: {
|
|
61
|
+
jwt: string;
|
|
62
|
+
transactionId: string;
|
|
63
|
+
};
|
|
64
|
+
response: IReq_PrepareOidcAuthorization['response'];
|
|
65
|
+
}
|
|
66
|
+
export interface IReq_CompleteOidcAuthorizationV2 extends plugins.typedRequestInterfaces.implementsTR<plugins.typedRequestInterfaces.ITypedRequest, IReq_CompleteOidcAuthorizationV2> {
|
|
67
|
+
method: 'completeOidcAuthorizationV2';
|
|
68
|
+
request: {
|
|
69
|
+
jwt: string;
|
|
70
|
+
transactionId: string;
|
|
71
|
+
consentApproved?: boolean;
|
|
72
|
+
};
|
|
73
|
+
response: {
|
|
74
|
+
redirectUrl: string;
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
export interface IReq_DenyOidcAuthorizationV2 extends plugins.typedRequestInterfaces.implementsTR<plugins.typedRequestInterfaces.ITypedRequest, IReq_DenyOidcAuthorizationV2> {
|
|
78
|
+
method: 'denyOidcAuthorizationV2';
|
|
79
|
+
request: {
|
|
80
|
+
transactionId: string;
|
|
81
|
+
error?: 'access_denied' | 'login_required' | 'consent_required';
|
|
82
|
+
};
|
|
83
|
+
response: {
|
|
84
|
+
redirectUrl: string;
|
|
85
|
+
};
|
|
86
|
+
}
|
|
@@ -9,6 +9,11 @@ export interface IReq_FirstRegistration extends plugins.typedRequestInterfaces.i
|
|
|
9
9
|
request: {
|
|
10
10
|
email: string;
|
|
11
11
|
productSlugOfInterest: string;
|
|
12
|
+
/**
|
|
13
|
+
* Optional opaque OIDC authorization transaction to resume after the
|
|
14
|
+
* registration session has established an authenticated browser session.
|
|
15
|
+
*/
|
|
16
|
+
oidcTransactionId?: string;
|
|
12
17
|
};
|
|
13
18
|
response: {
|
|
14
19
|
status: 'ok' | 'not ok';
|
|
@@ -29,6 +34,11 @@ export interface IReq_AfterRegistrationEmailClicked extends plugins.typedRequest
|
|
|
29
34
|
* the email thats associated with the given request token
|
|
30
35
|
*/
|
|
31
36
|
email: string;
|
|
37
|
+
/**
|
|
38
|
+
* Authoritative transaction retained by the server-side registration
|
|
39
|
+
* session. It is returned only after the email token has been proved.
|
|
40
|
+
*/
|
|
41
|
+
oidcTransactionId?: string;
|
|
32
42
|
};
|
|
33
43
|
}
|
|
34
44
|
export interface IReq_VerifyRegistrationEmailCode extends plugins.typedRequestInterfaces.implementsTR<plugins.typedRequestInterfaces.ITypedRequest, IReq_VerifyRegistrationEmailCode> {
|
|
@@ -48,6 +58,11 @@ export interface IReq_VerifyRegistrationEmailCode extends plugins.typedRequestIn
|
|
|
48
58
|
*/
|
|
49
59
|
token: string;
|
|
50
60
|
email: string;
|
|
61
|
+
/**
|
|
62
|
+
* Authoritative transaction retained by the server-side registration
|
|
63
|
+
* session. It is returned only after the email code has been proved.
|
|
64
|
+
*/
|
|
65
|
+
oidcTransactionId?: string;
|
|
51
66
|
};
|
|
52
67
|
}
|
|
53
68
|
export interface IReq_SetDataForRegistration extends plugins.typedRequestInterfaces.implementsTR<plugins.typedRequestInterfaces.ITypedRequest, IReq_SetDataForRegistration> {
|
|
@@ -76,5 +91,10 @@ export interface IReq_FinishRegistration extends plugins.typedRequestInterfaces.
|
|
|
76
91
|
* the client then routes to the normal sign-in.
|
|
77
92
|
*/
|
|
78
93
|
refreshToken?: string;
|
|
94
|
+
/**
|
|
95
|
+
* Authoritative transaction retained by the completed registration
|
|
96
|
+
* session so the authenticated client can resume the OIDC handoff.
|
|
97
|
+
*/
|
|
98
|
+
oidcTransactionId?: string;
|
|
79
99
|
};
|
|
80
100
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@idp.global/interfaces",
|
|
3
|
-
"version": "26.
|
|
3
|
+
"version": "26.3.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Shared TypeScript interfaces and TypedRequest contracts for the idp.global ecosystem.",
|
|
6
6
|
"exports": {
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"@git.zone/tsbuild": "^4.4.2",
|
|
18
18
|
"@git.zone/tsdoc": "^2.1.1",
|
|
19
19
|
"@git.zone/tsrun": "^2.0.5",
|
|
20
|
-
"@git.zone/tstest": "^3.6.
|
|
20
|
+
"@git.zone/tstest": "^3.6.7",
|
|
21
21
|
"@types/node": "^26.1.1"
|
|
22
22
|
},
|
|
23
23
|
"files": [
|
package/readme.md
CHANGED
|
@@ -117,6 +117,18 @@ token.
|
|
|
117
117
|
|
|
118
118
|
Request groups cover login, registration, JWT refresh, user/session queries, organization membership, invitations, apps, billing, admin actions, alerts, passport device flows, password reset, device IDs, and OIDC authorization.
|
|
119
119
|
|
|
120
|
+
The OIDC V2 authorization contracts
|
|
121
|
+
`IReq_InspectOidcAuthorizationV2`, `IReq_PrepareOidcAuthorizationV2`,
|
|
122
|
+
`IReq_CompleteOidcAuthorizationV2`, and `IReq_DenyOidcAuthorizationV2` model an
|
|
123
|
+
opaque browser handoff. Only a one-time `transactionId` crosses the browser
|
|
124
|
+
boundary; the original OAuth request remains server-side.
|
|
125
|
+
|
|
126
|
+
Registration may retain that opaque transaction in its server-side session.
|
|
127
|
+
`IReq_FirstRegistration` accepts it optionally, while successful email-token
|
|
128
|
+
or email-code proof and registration completion return the authoritative stored
|
|
129
|
+
value. Implementations should keep it out of registration email links and use
|
|
130
|
+
the existing authenticated OIDC prepare/complete requests for final binding.
|
|
131
|
+
|
|
120
132
|
OIDC app contracts expose only client configuration and safe credential
|
|
121
133
|
metadata. Client-secret hashes, signing private keys, and persistence records
|
|
122
134
|
for authorization codes, access tokens, refresh tokens, and token families
|
package/ts/00_commitinfo_data.ts
CHANGED
|
@@ -17,6 +17,11 @@ export interface IRegistrationSession {
|
|
|
17
17
|
* Remaining code verification attempts before the session is invalidated.
|
|
18
18
|
*/
|
|
19
19
|
codeAttemptsRemaining: number;
|
|
20
|
+
/**
|
|
21
|
+
* Opaque pending OIDC authorization transaction retained server-side.
|
|
22
|
+
* It is never embedded in registration email links.
|
|
23
|
+
*/
|
|
24
|
+
oidcTransactionId?: string;
|
|
20
25
|
status: TRegistrationSessionStatus;
|
|
21
26
|
validUntil: number;
|
|
22
27
|
createdAt: number;
|
|
@@ -52,3 +52,65 @@ export interface IReq_PrepareOidcAuthorization
|
|
|
52
52
|
grantedScopes: TOidcScope[];
|
|
53
53
|
};
|
|
54
54
|
}
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Opaque authorization handoff. The browser receives only the one-time
|
|
58
|
+
* transaction identifier; all OAuth request data remains server-side.
|
|
59
|
+
*/
|
|
60
|
+
export interface IReq_InspectOidcAuthorizationV2
|
|
61
|
+
extends plugins.typedRequestInterfaces.implementsTR<
|
|
62
|
+
plugins.typedRequestInterfaces.ITypedRequest,
|
|
63
|
+
IReq_InspectOidcAuthorizationV2
|
|
64
|
+
> {
|
|
65
|
+
method: 'inspectOidcAuthorizationV2';
|
|
66
|
+
request: {
|
|
67
|
+
transactionId: string;
|
|
68
|
+
};
|
|
69
|
+
response: {
|
|
70
|
+
prompt: 'none' | 'login' | 'consent' | null;
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export interface IReq_PrepareOidcAuthorizationV2
|
|
75
|
+
extends plugins.typedRequestInterfaces.implementsTR<
|
|
76
|
+
plugins.typedRequestInterfaces.ITypedRequest,
|
|
77
|
+
IReq_PrepareOidcAuthorizationV2
|
|
78
|
+
> {
|
|
79
|
+
method: 'prepareOidcAuthorizationV2';
|
|
80
|
+
request: {
|
|
81
|
+
jwt: string;
|
|
82
|
+
transactionId: string;
|
|
83
|
+
};
|
|
84
|
+
response: IReq_PrepareOidcAuthorization['response'];
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export interface IReq_CompleteOidcAuthorizationV2
|
|
88
|
+
extends plugins.typedRequestInterfaces.implementsTR<
|
|
89
|
+
plugins.typedRequestInterfaces.ITypedRequest,
|
|
90
|
+
IReq_CompleteOidcAuthorizationV2
|
|
91
|
+
> {
|
|
92
|
+
method: 'completeOidcAuthorizationV2';
|
|
93
|
+
request: {
|
|
94
|
+
jwt: string;
|
|
95
|
+
transactionId: string;
|
|
96
|
+
consentApproved?: boolean;
|
|
97
|
+
};
|
|
98
|
+
response: {
|
|
99
|
+
redirectUrl: string;
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
export interface IReq_DenyOidcAuthorizationV2
|
|
104
|
+
extends plugins.typedRequestInterfaces.implementsTR<
|
|
105
|
+
plugins.typedRequestInterfaces.ITypedRequest,
|
|
106
|
+
IReq_DenyOidcAuthorizationV2
|
|
107
|
+
> {
|
|
108
|
+
method: 'denyOidcAuthorizationV2';
|
|
109
|
+
request: {
|
|
110
|
+
transactionId: string;
|
|
111
|
+
error?: 'access_denied' | 'login_required' | 'consent_required';
|
|
112
|
+
};
|
|
113
|
+
response: {
|
|
114
|
+
redirectUrl: string;
|
|
115
|
+
};
|
|
116
|
+
}
|
|
@@ -15,6 +15,11 @@ export interface IReq_FirstRegistration
|
|
|
15
15
|
request: {
|
|
16
16
|
email: string;
|
|
17
17
|
productSlugOfInterest: string;
|
|
18
|
+
/**
|
|
19
|
+
* Optional opaque OIDC authorization transaction to resume after the
|
|
20
|
+
* registration session has established an authenticated browser session.
|
|
21
|
+
*/
|
|
22
|
+
oidcTransactionId?: string;
|
|
18
23
|
};
|
|
19
24
|
response: {
|
|
20
25
|
status: 'ok' | 'not ok';
|
|
@@ -40,6 +45,11 @@ export interface IReq_AfterRegistrationEmailClicked
|
|
|
40
45
|
* the email thats associated with the given request token
|
|
41
46
|
*/
|
|
42
47
|
email: string;
|
|
48
|
+
/**
|
|
49
|
+
* Authoritative transaction retained by the server-side registration
|
|
50
|
+
* session. It is returned only after the email token has been proved.
|
|
51
|
+
*/
|
|
52
|
+
oidcTransactionId?: string;
|
|
43
53
|
};
|
|
44
54
|
}
|
|
45
55
|
|
|
@@ -64,6 +74,11 @@ export interface IReq_VerifyRegistrationEmailCode
|
|
|
64
74
|
*/
|
|
65
75
|
token: string;
|
|
66
76
|
email: string;
|
|
77
|
+
/**
|
|
78
|
+
* Authoritative transaction retained by the server-side registration
|
|
79
|
+
* session. It is returned only after the email code has been proved.
|
|
80
|
+
*/
|
|
81
|
+
oidcTransactionId?: string;
|
|
67
82
|
};
|
|
68
83
|
}
|
|
69
84
|
|
|
@@ -102,5 +117,10 @@ export interface IReq_FinishRegistration
|
|
|
102
117
|
* the client then routes to the normal sign-in.
|
|
103
118
|
*/
|
|
104
119
|
refreshToken?: string;
|
|
120
|
+
/**
|
|
121
|
+
* Authoritative transaction retained by the completed registration
|
|
122
|
+
* session so the authenticated client can resume the OIDC handoff.
|
|
123
|
+
*/
|
|
124
|
+
oidcTransactionId?: string;
|
|
105
125
|
};
|
|
106
126
|
}
|