@microsoft/ccf-app 5.0.7 → 5.0.8

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.
Files changed (2) hide show
  1. package/endpoints.d.ts +12 -6
  2. package/package.json +1 -1
package/endpoints.d.ts CHANGED
@@ -101,7 +101,16 @@ export interface AuthnIdentityCommon {
101
101
  export interface EmptyAuthnIdentity extends AuthnIdentityCommon {
102
102
  policy: "no_auth";
103
103
  }
104
- interface UserMemberAuthnIdentityCommon extends AuthnIdentityCommon {
104
+ interface CertAuthnIdentityCommon extends AuthnIdentityCommon {
105
+ /**
106
+ * PEM-encoded certificate.
107
+ */
108
+ cert: string;
109
+ }
110
+ export interface AnyCertAuthnIdentity extends CertAuthnIdentityCommon {
111
+ policy: "any_cert";
112
+ }
113
+ interface UserMemberAuthnIdentityCommon extends CertAuthnIdentityCommon {
105
114
  /**
106
115
  * User/member ID.
107
116
  */
@@ -110,10 +119,6 @@ interface UserMemberAuthnIdentityCommon extends AuthnIdentityCommon {
110
119
  * User/member data object.
111
120
  */
112
121
  data: any;
113
- /**
114
- * PEM-encoded user/member certificate.
115
- */
116
- cert: string;
117
122
  }
118
123
  export interface UserCertAuthnIdentity extends UserMemberAuthnIdentityCommon {
119
124
  policy: "user_cert";
@@ -160,6 +165,7 @@ export interface AllOfAuthnIdentity extends AuthnIdentityCommon {
160
165
  policy: string[];
161
166
  user_cert?: UserCertAuthnIdentity;
162
167
  member_cert?: MemberCertAuthnIdentity;
168
+ any_cert?: AnyCertAuthnIdentity;
163
169
  user_cose_sign1?: UserCOSESign1AuthnIdentity;
164
170
  member_cose_sign1?: MemberCOSESign1AuthnIdentity;
165
171
  jwt?: JwtAuthnIdentity;
@@ -169,7 +175,7 @@ export interface AllOfAuthnIdentity extends AuthnIdentityCommon {
169
175
  * Each identity corresponds to a matching {@linkcode AuthnIdentityCommon.policy | policy}.
170
176
  * Policies have to be declared for each endpoint in ``app.json``.
171
177
  */
172
- export type AuthnIdentity = EmptyAuthnIdentity | UserCertAuthnIdentity | MemberCertAuthnIdentity | JwtAuthnIdentity | MemberCOSESign1AuthnIdentity | UserCOSESign1AuthnIdentity | AllOfAuthnIdentity;
178
+ export type AuthnIdentity = EmptyAuthnIdentity | UserCertAuthnIdentity | MemberCertAuthnIdentity | AnyCertAuthnIdentity | JwtAuthnIdentity | MemberCOSESign1AuthnIdentity | UserCOSESign1AuthnIdentity | AllOfAuthnIdentity;
173
179
  /** See {@linkcode Response.body}. */
174
180
  export type ResponseBodyType<T> = string | ArrayBuffer | JsonCompatible<T>;
175
181
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@microsoft/ccf-app",
3
- "version": "5.0.7",
3
+ "version": "5.0.8",
4
4
  "description": "CCF app support package",
5
5
  "main": "index.js",
6
6
  "files": [