Fix DID Methods Supported Constant

This commit is contained in:
Sydney Morton 2022-01-29 12:01:25 -08:00
Родитель 982a69a6d4
Коммит eab714a34d
2 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -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"

Просмотреть файл

@ -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
}