From e7bf7d032145f7017e5d03c63c9284e6ef9a3348 Mon Sep 17 00:00:00 2001 From: Pascal Knoth Date: Mon, 11 Nov 2024 11:45:34 +0100 Subject: [PATCH] [federation] resolve trust chains --- .../Forms/FederationEntityField.vue | 3 +- .../components/Forms/FederationEntityForm.vue | 27 +++-- .../src/models/federation-entity.model.js | 4 +- .../FederationEntityList.vue | 2 +- apps/boruta_admin/lib/boruta_admin/clients.ex | 14 +-- .../lib/boruta_federation/application.ex | 1 + .../lib/boruta_federation/cache.ex | 5 + .../boruta_federation/federation_entities.ex | 11 ++- .../federation_entities/federation_entity.ex | 32 +++++- .../federation_entities/leaf_entity.ex | 98 +++++++++++++++++-- .../boruta_federation/openid_federation.ex | 2 +- .../lib/boruta_federation/trust_chains.ex | 38 ++++++- .../controllers/openid_controller.ex | 7 ++ .../views/openid_view.ex | 11 +++ apps/boruta_federation/mix.exs | 2 + ...add_authorities_to_federation_entities.exs | 2 +- .../identity_providers/backend.ex | 9 +- apps/boruta_web/lib/boruta_web/router.ex | 6 ++ mix.lock | 2 +- 19 files changed, 226 insertions(+), 50 deletions(-) create mode 100644 apps/boruta_federation/lib/boruta_federation/cache.ex create mode 100644 apps/boruta_federation/lib/boruta_federation_web/controllers/openid_controller.ex create mode 100644 apps/boruta_federation/lib/boruta_federation_web/views/openid_view.ex diff --git a/apps/boruta_admin/assets/src/components/Forms/FederationEntityField.vue b/apps/boruta_admin/assets/src/components/Forms/FederationEntityField.vue index 7c6a1d8c..1f9b6293 100644 --- a/apps/boruta_admin/assets/src/components/Forms/FederationEntityField.vue +++ b/apps/boruta_admin/assets/src/components/Forms/FederationEntityField.vue @@ -2,6 +2,7 @@
+

Authorities

- -
-
- - +
+ +
+ + +
+
+ +
Add an authority @@ -97,17 +102,19 @@ export default {