Merge branch 'main' of gitea.pangea.org:trustchain-oc1-orchestral/IdHub

This commit is contained in:
Cayo Puigdefabregas 2024-01-24 16:10:17 +01:00
commit 60ede69ad3
5 changed files with 13 additions and 3 deletions

View file

@ -0,0 +1,2 @@
"pangea.org";"https://idhub1.demo.pangea.org/oidc4vp/"
"exo.cat";"https://idhub2.demo.pangea.org/oidc4vp/"
1 pangea.org https://idhub1.demo.pangea.org/oidc4vp/
2 exo.cat https://idhub2.demo.pangea.org/oidc4vp/

View file

@ -0,0 +1,2 @@
"Setem Madrid";"https://idhub1-setem.demo.pangea.org/oidc4vp/"
"Setem Catalunya";"https://idhub2-setem.demo.pangea.org/oidc4vp/"
1 Setem Madrid https://idhub1-setem.demo.pangea.org/oidc4vp/
2 Setem Catalunya https://idhub2-setem.demo.pangea.org/oidc4vp/

View file

@ -0,0 +1,3 @@
"Xarxa Oberta de Nou Barris (XO9B)";"https://idhub1-xo9b.demo.pangea.org/oidc4vp/"
"somconnexio.coop";"https://idhub2-xo9b.demo.pangea.org/oidc4vp/"
"exo.cat";"https://verify.exo.cat"
1 Xarxa Oberta de Nou Barris (XO9B) https://idhub1-xo9b.demo.pangea.org/oidc4vp/
2 somconnexio.coop https://idhub2-xo9b.demo.pangea.org/oidc4vp/
3 exo.cat https://verify.exo.cat

View file

@ -30,13 +30,14 @@ class Command(BaseCommand):
self.create_users(USER_EMAIL, USER_PASSWORD) self.create_users(USER_EMAIL, USER_PASSWORD)
BASE_DIR = Path(__file__).resolve().parent.parent.parent.parent BASE_DIR = Path(__file__).resolve().parent.parent.parent.parent
ORGANIZATION = os.path.join(BASE_DIR, 'examples/organizations.csv') ORGANIZATION = os.path.join(BASE_DIR, settings.ORG_FILE)
with open(ORGANIZATION, newline='\n') as csvfile: with open(ORGANIZATION, newline='\n') as csvfile:
f = csv.reader(csvfile, delimiter=';', quotechar='"') f = csv.reader(csvfile, delimiter=';', quotechar='"')
for r in f: for r in f:
self.create_organizations(r[0].strip(), r[1].strip()) self.create_organizations(r[0].strip(), r[1].strip())
self.sync_credentials_organizations("pangea.org", "somconnexio.coop") if settings.SYNC_ORG_DEV == 'y':
self.sync_credentials_organizations("local 8000", "local 9000") self.sync_credentials_organizations("pangea.org", "somconnexio.coop")
self.sync_credentials_organizations("local 8000", "local 9000")
self.create_schemas() self.create_schemas()
def create_admin_users(self, email, password): def create_admin_users(self, email, password):

View file

@ -224,3 +224,5 @@ LOGGING = {
} }
ORGANIZATION = config('ORGANIZATION', 'Pangea') ORGANIZATION = config('ORGANIZATION', 'Pangea')
SYNC_ORG_DEV = config('SYNC_ORG_DEV', 'y')
ORG_FILE = config('ORG_FILE', 'examples/organizations.csv')