-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: accept header #253
base: main
Are you sure you want to change the base?
feat: accept header #253
Conversation
src/iden3comm/packers/jws.ts
Outdated
@@ -102,6 +102,11 @@ export class JWSPacker implements IPacker { | |||
return MediaType.SignedMessage; | |||
} | |||
|
|||
/** {@inheritDoc IPacker.getSupportedAlgorithms} */ | |||
getSupportedAlgorithms(): AcceptJwsAlgorithms[] { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure it is unique
src/iden3comm/packers/jws.ts
Outdated
@@ -102,6 +103,38 @@ export class JWSPacker implements IPacker { | |||
return MediaType.SignedMessage; | |||
} | |||
|
|||
/** {@inheritDoc IPacker.getEnvelop} */ | |||
getEnvelop(): string { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
getEnvelope()
src/iden3comm/packers/jws.ts
Outdated
} | ||
|
||
/** {@inheritDoc IPacker.isSupported} */ | ||
isSupported(profile: string) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
isProfileSupported
feat: add support of submitZKPResponseV2 and prepareTxArgsSubmit
src/iden3comm/handlers/auth.ts
Outdated
} | ||
|
||
if (!supportedMediaTypes.length) { | ||
throw new Error('no profile meets `access` header requirements'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
throw new Error('no packer with profile which meets access
header requirements');
Comment
src/iden3comm/packageManager.ts
Outdated
@@ -21,6 +21,21 @@ export class PackageManager implements IPackageManager { | |||
this.packers = new Map<MediaType, IPacker>(); | |||
} | |||
|
|||
/** {@inheritDoc IPackageManager.isSupported} */ | |||
isSupported(mediaType: MediaType, profile: string): boolean { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you should rename interface method to isProfileSupported
too
src/iden3comm/packers/zkp.ts
Outdated
@@ -174,6 +175,49 @@ export class ZKPPacker implements IPacker { | |||
mediaType(): MediaType { | |||
return MediaType.ZKPMessage; | |||
} | |||
|
|||
/** {@inheritDoc IPacker.getEnvelope} */ | |||
getEnvelope(): string { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
and in future I guess we will have potentially an array of strings even for one media type, maybe we should return an array of strings and rename methods to getSupportedProfiles()
* feat: add optional displayMethod to CredentialRequest * IDEN3_DISPLAY_METHOD
* add logic for removal of the credential with another status * add possibility to disable publishing of the genesis state
* update profile nonce, so it can be number or string * 1.19.0 * add validation check
* add spellcheck
No description provided.