Skip to content

Commit

Permalink
chore: wallet ta tutorial
Browse files Browse the repository at this point in the history
  • Loading branch information
peppelinux committed Jul 30, 2023
1 parent b8a099a commit 9e2aef5
Show file tree
Hide file tree
Showing 6 changed files with 43 additions and 2 deletions.
39 changes: 39 additions & 0 deletions examples/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# EUDI Wallet Federation onboarding tutorial


Please follow these steps described below to have a fully working demo.
The sections identified with the prefix [FedOp] are related to the Federation operators that
accreditates the subordinates. The sections identified with the prefix [User] are
related to the User that will to ask to get onboarded to the onboarding public service.

## [FedOp] Configure you Trust Anchor

hints: you can even import the dumps located in the [dumps](dumps) forlder.

## [User] Onboard your entity

Go to [the onboarding demo service](127.0.0.1:8000/onboarding/landing) and click
on the button `Register your entity`.

### [User] Fill the form

hint:
![rp-onb](tutorial/onb1.png)

Then click on the button `Submit`. If the validation of the Entity's configuration passes,
the user will be redirected to the onboarding status page, as shown below:

![rp-onb2](tutorial/onb2.png)


### [FedOp] enable the descendant

The admins of the platform opens the pending onboarding requests and after a
checks selects all the ones that are eligible to be subordinates of this federation.

![rp-onb](tutorial/onb3.png)

### [User] get the Entity Statement

Then connect to [the fetch endpoint](http://127.0.0.1:8000/fetch?sub=https://localhost:10000/OpenID4VP&anchor=http://127.0.0.1:8000) to obtain the entity statement related to the onboarded RP.

2 changes: 2 additions & 0 deletions examples/wallet_trust_anchor/logs/trust_anchor.log.2023-07-09
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
2023-07-09 17:47:55,142 spid_cie_oidc.entity.statements INFO Starting Entity Configuration Request for https://trust-anchor.oidc-federation.online/oidc/rp/.well-known/openid-federation
2023-07-09 17:49:37,561 spid_cie_oidc.entity.statements INFO Starting Entity Configuration Request for https://trust-anchor.oidc-federation.online/oidc/rp/.well-known/openid-federation
Binary file added examples/wallet_trust_anchor/tutorial/onb1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added examples/wallet_trust_anchor/tutorial/onb2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added examples/wallet_trust_anchor/tutorial/onb3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions spid_cie_oidc/authority/validators.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def validate_entity_configuration(value):
"""
jwt = None
try:
jwt = get_entity_configurations(value)[0]
jwt = get_entity_configurations(value, httpc_params = HTTPC_PARAMS)[0]
except Exception as e:
raise ValidationError(
f"Failed to fetch Entity Configuration for {value}: {e}"
Expand All @@ -39,7 +39,7 @@ def validate_entity_configuration(value):
ec.validate_by_itself()
except Exception as e: # pragma: no cover
raise ValidationError(
f"Failed to fetch Entity Configuration for {value}: {e}"
f"Failed to validate the Entity Configuration for {value}: {e}"
)

authority_hints = ec.payload.get("authority_hints", [])
Expand Down

0 comments on commit 9e2aef5

Please sign in to comment.