idhub: demo vault and default did

use DEMO
This commit is contained in:
pedro 2025-01-29 18:02:17 +01:00
parent c8729973b7
commit 3d77e9983e
2 changed files with 3 additions and 2 deletions

View file

@ -1 +1 @@
{"label": "Default", "key_material": "{\"kty\": \"OKP\", \"crv\": \"Ed25519\", \"x\": \"IRqDfIumhbKKHhqMjOngikQmGoT1cZ6LPP-JjXa8CsY\", \"d\": \"AZXUEnJYFbGcn3Ebzy3vQWYFzx6rdnoHKilaMYUWuHA\", \"kid\": \"Generated\"}"}
{"label": "DEMO", "key_material": "{\"kty\": \"OKP\", \"crv\": \"Ed25519\", \"x\": \"IRqDfIumhbKKHhqMjOngikQmGoT1cZ6LPP-JjXa8CsY\", \"d\": \"AZXUEnJYFbGcn3Ebzy3vQWYFzx6rdnoHKilaMYUWuHA\", \"kid\": \"Generated\"}"}

View file

@ -36,7 +36,8 @@ class Command(BaseCommand):
ADMIN_PASSWORD = settings.INITIAL_ADMIN_PASSWORD
self.predefined_token = kwargs['predefined_token']
self.predefined_did = kwargs['predefined_did']
cache.set("KEY_DIDS", "1", None)
# on demo situation, encrypted vault is hardcoded with password DEMO
cache.set("KEY_DIDS", "DEMO", None)
self.org = Organization.objects.create(
name=self.DOMAIN,