-
Notifications
You must be signed in to change notification settings - Fork 204
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(credentials): indy cred attachment format (#862)
Signed-off-by: Timo Glastra <[email protected]>
- Loading branch information
1 parent
1cc8f46
commit 16935e2
Showing
1 changed file
with
3 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -49,6 +49,7 @@ import { IndyCredPropose } from './models/IndyCredPropose' | |
const INDY_CRED_ABSTRACT = 'hlindy/[email protected]' | ||
const INDY_CRED_REQUEST = 'hlindy/[email protected]' | ||
const INDY_CRED_FILTER = 'hlindy/[email protected]' | ||
const INDY_CRED = 'hlindy/[email protected]' | ||
|
||
@scoped(Lifecycle.ContainerScoped) | ||
export class IndyCredentialFormatService extends CredentialFormatService<IndyCredentialFormat> { | ||
|
@@ -302,7 +303,7 @@ export class IndyCredentialFormatService extends CredentialFormatService<IndyCre | |
|
||
const format = new CredentialFormatSpec({ | ||
attachId, | ||
format: INDY_CRED_ABSTRACT, | ||
format: INDY_CRED, | ||
}) | ||
|
||
const attachment = this.getFormatData(credential, format.attachId) | ||
|
@@ -355,7 +356,7 @@ export class IndyCredentialFormatService extends CredentialFormatService<IndyCre | |
} | ||
|
||
public supportsFormat(format: string): boolean { | ||
const supportedFormats = [INDY_CRED_ABSTRACT, INDY_CRED_REQUEST, INDY_CRED_FILTER] | ||
const supportedFormats = [INDY_CRED_ABSTRACT, INDY_CRED_REQUEST, INDY_CRED_FILTER, INDY_CRED] | ||
|
||
return supportedFormats.includes(format) | ||
} | ||
|