diff --git a/VCEntities/VCEntities/util/VCEntitiesConstants.swift b/VCEntities/VCEntities/util/VCEntitiesConstants.swift index b513c53..8df50c0 100644 --- a/VCEntities/VCEntities/util/VCEntitiesConstants.swift +++ b/VCEntities/VCEntities/util/VCEntitiesConstants.swift @@ -23,7 +23,7 @@ public struct VCEntitiesConstants { // OIDC Protocol public static let ALGORITHM_SUPPORTED_IN_VP = "ES256K" public static let CREDENTIAL_FORMAT_SUPPORTED = "jwt" - public static let DID_METHODS_SUPPORTED = "ion" + public static let DID_METHODS_SUPPORTED = "did:ion:" public static let RESPONSE_TYPE = "id_token" public static let RESPONSE_MODE = "post" public static let SCOPE = "openid" diff --git a/VCEntities/VCEntities/validators/PresentationRequestValidator.swift b/VCEntities/VCEntities/validators/PresentationRequestValidator.swift index c302dad..3ceb824 100644 --- a/VCEntities/VCEntities/validators/PresentationRequestValidator.swift +++ b/VCEntities/VCEntities/validators/PresentationRequestValidator.swift @@ -80,7 +80,7 @@ public struct PresentationRequestValidator: RequestValidating { throw PresentationRequestValidatorError.subjectIdentifierTypeNotSupported } - if let isAlgorithmSupportedInVp = registration.vpFormats?.jwtVP?.algorithms?.contains(VCEntitiesConstants.ALGORITHM_SUPPORTED_IN_VP), + if let isAlgorithmSupportedInVp = registration.vpFormats?.jwtVP?.algorithms?.contains(VCEntitiesConstants.ALGORITHM_SUPPORTED_IN_VP), !isAlgorithmSupportedInVp { throw PresentationRequestValidatorError.signingAlgorithmNotSupported }