Skip to content

Commit b234dd1

Browse files
authored
MOSIP-34852: Added property for verified attributes (#9366)
* Added property for verified attribtues Signed-off-by: Dhanendra Sahu <dhanendra.tech@gmail.com> * Added property for verified_attributes Signed-off-by: Dhanendra Sahu <dhanendra.tech@gmail.com> * removed -mosip.idrepo.cache.secure.individual-id=false Signed-off-by: Dhanendra Sahu <dhanendra.tech@gmail.com> * Removed duplicate properties Signed-off-by: Dhanendra Sahu <dhanendra.tech@gmail.com> * removed unused property Signed-off-by: Dhanendra Sahu <dhanendra.tech@gmail.com> --------- Signed-off-by: Dhanendra Sahu <dhanendra.tech@gmail.com>
1 parent 39047d6 commit b234dd1

2 files changed

Lines changed: 127 additions & 0 deletions

File tree

VerifiedAttributes.json

Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
{
2+
"$schema": "https://json-schema.org/draft/2020-12/schema",
3+
"type": "object",
4+
"additionalProperties": false,
5+
"definitions": {
6+
"verification_metadata": {
7+
"additionalProperties": false,
8+
"type": "object",
9+
"required": [
10+
"trust_framework",
11+
"verification_process",
12+
"time"
13+
],
14+
"properties": {
15+
"trust_framework": {
16+
"type": "string"
17+
},
18+
"verification_process": {
19+
"type": "string"
20+
},
21+
"assurance_level": {
22+
"type": "string"
23+
},
24+
"time": {
25+
"type": "string"
26+
},
27+
"assurance_process": {
28+
"type": [
29+
"object",
30+
"null"
31+
],
32+
"properties": {
33+
"level": {
34+
"type": "string"
35+
},
36+
"policy": {
37+
"type": "string"
38+
},
39+
"procedure": {
40+
"type": "string"
41+
}
42+
}
43+
}
44+
}
45+
}
46+
},
47+
"required": [
48+
"trustFramework",
49+
"verificationProcess",
50+
"claims",
51+
"metadata"
52+
],
53+
"properties": {
54+
"trustFramework": {
55+
"type": "string"
56+
},
57+
"verificationProcess": {
58+
"type": "string"
59+
},
60+
"claims": {
61+
"type": "array",
62+
"items": {
63+
"type": "string",
64+
"enum" : ["fullName", "phone", "email", "dateOfBirth"]
65+
}
66+
},
67+
"metadata": {
68+
"$ref": "#/definitions/verification_metadata"
69+
}
70+
},
71+
"allOf": [
72+
{
73+
"properties": {
74+
"metadata": {
75+
"properties": {
76+
"trust_framework": {
77+
"const": { "$data": "1/trustFramework" }
78+
},
79+
"verification_process": {
80+
"const": { "$data": "1/verificationProcess" }
81+
}
82+
}
83+
}
84+
}
85+
}
86+
]
87+
}

id-repository-default.properties

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -506,3 +506,43 @@ mosip.kernel.http.default.restTemplate.total-max-connections=700
506506
mosip.kernel.http.plain.restTemplate.max-connection-per-route=100
507507
mosip.kernel.http.plain.restTemplate.total-max-connections=700
508508

509+
mosip.idrepo.verified-attributes.schema-url=${config.server.file.storage.uri}VerifiedAttributes.json
510+
511+
mosip.identity.get.excluded.attribute.list=UIN,verifiedAttributes,IDSchemaVersion
512+
513+
514+
## ---------------------------------------- Cache configuration --------------------------------------------------------
515+
mosip.idrepo.cache.names=credential_transaction,partner_extractor_formats,datashare_policies,topics,online_verification_partners,uin_encrypt_salt,uin_hash_salt,id_attributes
516+
# redis cache configuration should be use in production
517+
#spring.cache.type=redis
518+
#spring.cache.cache-names=${mosip.idrepo.cache.names}
519+
#spring.redis.host=redis-master-0.redis-headless.redis.svc.cluster.local
520+
#spring.redis.port=6379
521+
#spring.redis.password=${redis.password}
522+
#management.health.redis.enabled=false
523+
524+
# 'simple' cache type is only applicable only for Non-Production setup
525+
spring.cache.type=simple
526+
527+
mosip.idrepo.cache.size={'credential_transaction' : 200, \
528+
'partner_extractor_formats': 200, \
529+
'datashare_policies': 200, \
530+
'topics': 200, \
531+
'online_verification_partners': 200, \
532+
'uin_encrypt_salt' : 100, \
533+
'uin_hash_salt': 100 , \
534+
'id_attributes': 200 }
535+
536+
# Cache expire in seconds is applicable for both 'simple' and 'Redis' cache type
537+
mosip.idrepo.cache.expire-in-seconds={'credential_transaction' : 60, \
538+
'partner_extractor_formats': 86400,\
539+
'datashare_policies': 86400, \
540+
'topics': 86400, \
541+
'online_verification_partners': 86400, \
542+
'uin_encrypt_salt' : 86400, \
543+
'uin_hash_salt': 86400, \
544+
'id_attributes': 86400}
545+
546+
mosip.role.idrepo.identity.postidvididv2=REGISTRATION_PROCESSOR,RESIDENT,REGISTRATION_ADMIN,REGISTRATION_SUPERVISOR,REGISTRATION_OFFICER,ID_AUTHENTICATION,ID_REPOSITORY
547+
mosip.role.idrepo.identity.postidrepov2=REGISTRATION_PROCESSOR,ID_REPOSITORY
548+
mosip.role.idrepo.identity.patchidrepov2=REGISTRATION_PROCESSOR,ID_REPOSITORY

0 commit comments

Comments
 (0)