-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/dev' into dev
- Loading branch information
Showing
35 changed files
with
1,542 additions
and
319 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
version: '3.1' | ||
|
||
services: | ||
database: | ||
mem_limit: 2048m | ||
image: mariadb:10.6.4-focal | ||
restart: unless-stopped | ||
ports: | ||
- 3306:3306 | ||
env_file: .env | ||
environment: | ||
MYSQL_DATABASE: '${MYSQL_DATABASE}' | ||
MYSQL_USER: '${MYSQL_USER}' | ||
MYSQL_PASSWORD: '${MYSQL_PASSWORD}' | ||
MYSQL_ROOT_PASSWORD: '${MYSQL_ROOT_PASSWORD}' | ||
volumes: | ||
- db-data:/var/lib/mysql | ||
networks: | ||
- wordpress-network | ||
|
||
phpmyadmin: | ||
depends_on: | ||
- database | ||
image: arm64v8/phpmyadmin:5.2.1-apache | ||
restart: unless-stopped | ||
ports: | ||
- 8081:80 | ||
env_file: .env | ||
environment: | ||
PMA_HOST: database | ||
MYSQL_ROOT_PASSWORD: '${MYSQL_ROOT_PASSWORD}' | ||
networks: | ||
- wordpress-network | ||
|
||
wordpress: | ||
depends_on: | ||
- database | ||
image: wordpress:5.4.0-apache | ||
restart: unless-stopped | ||
ports: | ||
- 8080:80 | ||
env_file: .env | ||
environment: | ||
WORDPRESS_DB_HOST: database:3306 | ||
WORDPRESS_DB_NAME: '${MYSQL_DATABASE}' | ||
WORDPRESS_DB_USER: '${MYSQL_USER}' | ||
WORDPRESS_DB_PASSWORD: '${MYSQL_PASSWORD}' | ||
volumes: | ||
- ./wordpress-plugin/onelogin-saml-sso/:/var/www/html/wp-content/plugins/onelogin-saml-sso/ | ||
- ./wordpress-theme/italiawp2/:/var/www/html/wp-content/themes/italiawp2/ | ||
networks: | ||
- wordpress-network | ||
|
||
volumes: | ||
db-data: | ||
|
||
networks: | ||
wordpress-network: | ||
driver: bridge |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
#!/bin/bash | ||
|
||
plugin_url="https://downloads.wordpress.org/plugin/onelogin-saml-sso.zip" | ||
theme_url="https://raw.githubusercontent.com/italia/design-wordpress-theme-italiaWP2/master/italiawp2.zip" | ||
plugin_folder="./wordpress-plugin" | ||
theme_folder="./wordpress-theme" | ||
|
||
mkdir -p $plugin_folder | ||
mkdir -p $theme_folder | ||
|
||
#download and unzip of plugin | ||
curl -O $plugin_url | ||
unzip onelogin-saml-sso.zip | ||
rm onelogin-saml-sso.zip | ||
|
||
# Move the content of the subfolder to the specified folder | ||
mv onelogin-saml-sso $plugin_folder | ||
|
||
# Remove the empty folder | ||
rmdir onelogin-saml-sso/onelogin-saml-sso | ||
rmdir onelogin-saml-sso | ||
|
||
#download and unzip of theme | ||
curl -O $theme_url | ||
unzip italiawp2.zip | ||
rm italiawp2.zip | ||
|
||
# Move the unzipped content to the specified folder | ||
mv italiawp2 $theme_folder |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,24 +2,65 @@ module: pyeudiw.satosa.backend.OpenID4VPBackend | |
name: OpenID4VP | ||
|
||
config: | ||
#Those are the endpoints listed on eudi wallet backend | ||
|
||
ui: | ||
static_storage_url: "https://localhost:9999" | ||
template_folder: "templates" # project root | ||
qrcode_template: "qrcode.html" | ||
error_template: "error.html" | ||
error_url: "https://localhost:9999/error_page.html" | ||
|
||
endpoints: | ||
pre_request: '/<name>/pre-request' | ||
redirect: '/<name>/redirect_uri' | ||
request: '/<name>/request_uri' | ||
entity_configuration: '/<name>/entity_configuration' | ||
|
||
error_url: "https://localhost:9999/error_page.html" | ||
entity_configuration: '/<name>/.well-known/openid-federation' | ||
|
||
qrcode_settings: | ||
size: 100 | ||
color: '#2B4375' | ||
logo_path: | ||
use_zlib: true | ||
use_zlib: false | ||
|
||
jwt_settings: | ||
default_sig_alg: ES256 # or RS256 | ||
default_exp: 6 # minutes | ||
|
||
authorization: | ||
url_scheme: "eudiw" # eudiw:// | ||
scopes: | ||
- pid-sd-jwt:unique_id+given_name+family_name | ||
|
||
federation: | ||
metadata_type: "wallet_relying_party" | ||
federation_authorities: | ||
- https://localhost:8000 | ||
default_sig_alg: "RS256" | ||
|
||
# private jwk | ||
federation_jwks: | ||
- kty: RSA | ||
d: QUZsh1NqvpueootsdSjFQz-BUvxwd3Qnzm5qNb-WeOsvt3rWMEv0Q8CZrla2tndHTJhwioo1U4NuQey7znijhZ177bUwPPxSW1r68dEnL2U74nKwwoYeeMdEXnUfZSPxzs7nY6b7vtyCoA-AjiVYFOlgKNAItspv1HxeyGCLhLYhKvS_YoTdAeLuegETU5D6K1xGQIuw0nS13Icjz79Y8jC10TX4FdZwdX-NmuIEDP5-s95V9DMENtVqJAVE3L-wO-NdDilyjyOmAbntgsCzYVGH9U3W_djh4t3qVFCv3r0S-DA2FD3THvlrFi655L0QHR3gu_Fbj3b9Ybtajpue_Q | ||
e: AQAB | ||
kid: 9Cquk0X-fNPSdePQIgQcQZtD6J0IjIRrFigW2PPK_-w | ||
n: utqtxbs-jnK0cPsV7aRkkZKA9t4S-WSZa3nCZtYIKDpgLnR_qcpeF0diJZvKOqXmj2cXaKFUE-8uHKAHo7BL7T-Rj2x3vGESh7SG1pE0thDGlXj4yNsg0qNvCXtk703L2H3i1UXwx6nq1uFxD2EcOE4a6qDYBI16Zl71TUZktJwmOejoHl16CPWqDLGo9GUSk_MmHOV20m4wXWkB4qbvpWVY8H6b2a0rB1B1YPOs5ZLYarSYZgjDEg6DMtZ4NgiwZ-4N1aaLwyO-GLwt9Vf-NBKwoxeRyD3zWE2FXRFBbhKGksMrCGnFDsNl5JTlPjaM3kYyImE941ggcuc495m-Fw | ||
p: 2zmGXIMCEHPphw778YjVTar1eycih6fFSJ4I4bl1iq167GqO0PjlOx6CZ1-OdBTVU7HfrYRiUK_BnGRdPDn-DQghwwkB79ZdHWL14wXnpB5y-boHz_LxvjsEqXtuQYcIkidOGaMG68XNT1nM4F9a8UKFr5hHYT5_UIQSwsxlRQ0 | ||
q: 2jMFt2iFrdaYabdXuB4QMboVjPvbLA-IVb6_0hSG_-EueGBvgcBxdFGIZaG6kqHqlB7qMsSzdptU0vn6IgmCZnX-Hlt6c5X7JB_q91PZMLTO01pbZ2Bk58GloalCHnw_mjPh0YPviH5jGoWM5RHyl_HDDMI-UeLkzP7ImxGizrM | ||
|
||
trust_marks: # todo | ||
- ... | ||
|
||
# private jwk | ||
metadata_jwks: | ||
- crv: P-256 | ||
d: KzQBowMMoPmSZe7G8QsdEWc1IvR2nsgE8qTOYmMcLtc | ||
kid: dDwPWXz5sCtczj7CJbqgPGJ2qQ83gZ9Sfs-tJyULi6s | ||
kty: EC | ||
x: TSO-KOqdnUj5SUuasdlRB2VVFSqtJOxuR5GftUTuBdk | ||
y: ByWgQt1wGBSnF56jQqLdoO1xKUynMY-BHIDB3eXlR7 | ||
|
||
#This is the configuration for the relaying party metadata | ||
wallet_relying_party: | ||
metadata: | ||
application_type: web | ||
|
||
#The following section contains all the algorithms supported for the encryption of response | ||
|
@@ -37,16 +78,15 @@ config: | |
- RS256 | ||
- ES256 | ||
|
||
default_sign_alg: RS256 | ||
|
||
#Various informations of the client | ||
client_id: <base>/<name> | ||
client_id: "<base_url>/<name>" | ||
client_name: Name of an example organization | ||
contacts: | ||
- [email protected] | ||
default_acr_values: | ||
- https://www.spid.gov.it/SpidL2 | ||
- https://www.spid.gov.it/SpidL3 | ||
|
||
default_max_age: 1111 | ||
|
||
#The following section contains all the algorithms supported for the encryption of id token response | ||
|
@@ -64,23 +104,15 @@ config: | |
- RS256 | ||
- ES256 | ||
|
||
jwks: | ||
keys: | ||
- e: AQAB | ||
kid: YhNFS3YnC9tjiCaivhWLVUJ3AxwGGz_98uRFaqMEEs | ||
kty: RSA | ||
n: "1Ta-sE \u2026" | ||
use: sig | ||
x5c: | ||
- '...' | ||
# time in ms | ||
token_exp_delta: 600000 | ||
# loaded in the __init__ | ||
# jwks: | ||
|
||
#This section contains the details for presentation request | ||
presentation_definitions: | ||
- id: pid-sd-jwt:unique_id+given_name+family_name | ||
input_descriptors: | ||
- format: | ||
- id: pid-sd-jwt:unique_id+given_name+family_name | ||
format: | ||
constraints: | ||
fields: | ||
- filter: | ||
|
@@ -106,7 +138,6 @@ config: | |
alg: | ||
- EdDSA | ||
- ES256 | ||
id: sd-jwt | ||
- id: mDL-sample-req | ||
input_descriptors: | ||
- format: | ||
|
@@ -139,9 +170,10 @@ config: | |
id: mDL | ||
|
||
redirect_uris: | ||
- <base>/<name>/redirect_uri | ||
- <base_url>/<name>/redirect_uri | ||
request_uris: | ||
- <base>/<name>/request_uri | ||
- <base_url>/<name>/request_uri | ||
|
||
require_auth_time: true | ||
subject_type: pairwise | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{# templates/base.html #} | ||
|
||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8"> | ||
<title>{% block title %}{{ title }}{% endblock title %}</title> | ||
</head> | ||
|
||
<body> | ||
<h1>{{ test_name }} Results</h1> | ||
{% block body %}{% endblock %} | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{% extends "base.html" %} | ||
|
||
|
||
{% block body %} | ||
|
||
<h1>Inquadra il qr code con il tuo smartphone</h1> | ||
|
||
<img src='data:image/svg+xml, {{ qrcode_svg }}'> | ||
|
||
{% endblock body %} |
Oops, something went wrong.