diff --git a/examples/keys_did.json b/examples/keys_did.json index 35caa1d..070965c 100644 --- a/examples/keys_did.json +++ b/examples/keys_did.json @@ -1 +1 @@ -{"label": "Default", "key_material": "{\"kty\": \"OKP\", \"crv\": \"Ed25519\", \"x\": \"IRqDfIumhbKKHhqMjOngikQmGoT1cZ6LPP-JjXa8CsY\", \"d\": \"AZXUEnJYFbGcn3Ebzy3vQWYFzx6rdnoHKilaMYUWuHA\", \"kid\": \"Generated\"}"} \ No newline at end of file +{"label": "DEMO", "key_material": "{\"kty\": \"OKP\", \"crv\": \"Ed25519\", \"x\": \"IRqDfIumhbKKHhqMjOngikQmGoT1cZ6LPP-JjXa8CsY\", \"d\": \"AZXUEnJYFbGcn3Ebzy3vQWYFzx6rdnoHKilaMYUWuHA\", \"kid\": \"Generated\"}"} diff --git a/idhub/management/commands/demo_data.py b/idhub/management/commands/demo_data.py index d5956f1..4eabe55 100644 --- a/idhub/management/commands/demo_data.py +++ b/idhub/management/commands/demo_data.py @@ -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,