Skip to content

Commit 6ccc72a

Browse files
committed
Deprecate presentationDefinitionUriSupported from VPConfiguration and in wallet metadata set presentation_definition_uri_supported to false by default
1 parent ca6943a commit 6ccc72a

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

src/main/kotlin/eu/europa/ec/eudi/openid4vp/Config.kt

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,14 @@ data class SupportedTransactionDataType(
226226
* @param supportedTransactionDataTypes the types of Transaction Data that are supported by the wallet
227227
*/
228228
data class VPConfiguration(
229-
val presentationDefinitionUriSupported: Boolean = true,
229+
@Deprecated(
230+
"""
231+
Don't use this property any more, it will soon be deprecated.
232+
Library will not be supporting presentation_definition_uri from now on.
233+
Value of presentation_definition_uri_supported in wallet metadata will be set to false by default
234+
""",
235+
)
236+
val presentationDefinitionUriSupported: Boolean = false,
230237
val knownPresentationDefinitionsPerScope: Map<String, PresentationDefinition> = emptyMap(),
231238
val knownDCQLQueriesPerScope: Map<String, DCQL> = emptyMap(),
232239
val vpFormats: VpFormats,

src/main/kotlin/eu/europa/ec/eudi/openid4vp/internal/request/WalletMetaData.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ internal fun walletMetaData(cfg: SiopOpenId4VPConfig, keys: List<JWK>): JsonObje
6363
//
6464
// OpenIdVP
6565
//
66-
put(PRESENTATION_DEFINITION_URI_SUPPORTED, cfg.vpConfiguration.presentationDefinitionUriSupported)
66+
put(PRESENTATION_DEFINITION_URI_SUPPORTED, false)
6767

6868
val vpFormats =
6969
VpFormatsTO.make(cfg.vpConfiguration.vpFormats).let(Json.Default::encodeToJsonElement)

0 commit comments

Comments
 (0)