From 9bf36a214b774ab23c335716c896f223355d59b3 Mon Sep 17 00:00:00 2001 From: Ghenadie Artic <57416779+Gartic99@users.noreply.github.com> Date: Wed, 20 Dec 2023 00:43:24 +0100 Subject: [PATCH] feat: qrcode loaded by client (#98) * new discovery and error page based on bootstrap-itali v2.6.1 * added id and class for errors * chore: added dependency for django theme * Fix: remove of non existing field of user * feat: implemented Django template for the example sp * chore: created static folder with static files * fix: adding missing STATIC_ROOT * fix: using {% static %} for static resources * fix: removed unused code * Update example_sp/djangosaml2_sp/saml2_sp/views.py Co-authored-by: Giuseppe De Marco * Update example_sp/djangosaml2_sp/saml2_sp/views.py Co-authored-by: Giuseppe De Marco * feat: dropdown for profile * fix: resolved merge conflicts * chore: removed comments on disco.html file * feat: improved echo_attributes page * feat: qrcode loaded by js library * fix: qrcode_color set by parameter --------- Co-authored-by: MDreW Co-authored-by: Giuseppe De Marco --- Docker-compose/nginx/nginx.conf_uwsgi_pass | 1 - example/static/disco.html | 45 +++++++--------------- example/static/js/qrcode.min.js | 1 + example/templates/base.html | 3 +- example/templates/qr_code.html | 25 +++++++++--- 5 files changed, 36 insertions(+), 39 deletions(-) create mode 100644 example/static/js/qrcode.min.js diff --git a/Docker-compose/nginx/nginx.conf_uwsgi_pass b/Docker-compose/nginx/nginx.conf_uwsgi_pass index c45a81ce..c6ce1297 100644 --- a/Docker-compose/nginx/nginx.conf_uwsgi_pass +++ b/Docker-compose/nginx/nginx.conf_uwsgi_pass @@ -63,7 +63,6 @@ server { # deny iFrame add_header X-Frame-Options "DENY"; - add_header X-Frame-Options DENY; add_header X-Content-Type-Options nosniff; add_header X-XSS-Protection "1; mode=block"; add_header X-Robots-Tag none; diff --git a/example/static/disco.html b/example/static/disco.html index 8ce3d353..4d3a7cce 100644 --- a/example/static/disco.html +++ b/example/static/disco.html @@ -13,7 +13,7 @@ - +
@@ -37,18 +37,17 @@

IT Wallet


@@ -126,33 +125,12 @@

Altre identità digitali

- -
-
- -
- + - -
diff --git a/example/templates/qr_code.html b/example/templates/qr_code.html index 98eee480..348b38b2 100644 --- a/example/templates/qr_code.html +++ b/example/templates/qr_code.html @@ -18,7 +18,12 @@

- +

Il codice è valido per secondi @@ -47,7 +52,15 @@

- +