Fix DID Methods Supported Constant
This commit is contained in:
Родитель
982a69a6d4
Коммит
eab714a34d
|
@ -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
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче