Skip to content

Commit

Permalink
Merged PR #81 into EUDI (#94)
Browse files Browse the repository at this point in the history
* 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 <giuseppe.demarco@teamdigitale.governo.it>

* Update example_sp/djangosaml2_sp/saml2_sp/views.py

Co-authored-by: Giuseppe De Marco <giuseppe.demarco@teamdigitale.governo.it>

* feat: dropdown for profile

* fix: resolved merge conflicts

* chore: removed comments on disco.html file

* feat: improved echo_attributes page

* Update Docker-compose/docker-compose.yml

Co-authored-by: Giuseppe De Marco <giuseppe.demarco@teamdigitale.governo.it>

---------

Co-authored-by: MDreW <andrea.ranaldi@gmail.com>
Co-authored-by: Giuseppe De Marco <giuseppe.demarco@teamdigitale.governo.it>
  • Loading branch information
3 people authored Nov 27, 2023
1 parent 5d24cf0 commit a70e6c2
Show file tree
Hide file tree
Showing 91 changed files with 644 additions and 17,926 deletions.
62 changes: 0 additions & 62 deletions example/static/cie/cie_black.svg

This file was deleted.

1 change: 0 additions & 1 deletion example/static/cie/cie_white.svg

This file was deleted.

3 changes: 3 additions & 0 deletions example/static/css/bootstrap-italia.min.css

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions example/static/css/ita-font.min.css
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
@font-face{font-family:Titillium Web;font-style:normal;font-weight:400;src:url(titillium-web-v4-latin-regular.woff2) format("woff2")}
1 change: 1 addition & 0 deletions example/static/css/ita.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file not shown.
43 changes: 18 additions & 25 deletions example/static/disco.html
Original file line number Diff line number Diff line change
@@ -1,20 +1,18 @@
<!DOCTYPE html>
<!doctype html>
<html lang="it">
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>Accedi</title>
<meta name="description" content="Accedi">
<link rel="shortcut icon" href="/static/spid/favicon-32x32.png">

<script src="/static/spid/spid-idps.js"></script>
<link rel="stylesheet" href="/static/bootstrap-italia/css/bootstrap-italia.min.css">

<!-- <link rel="stylesheet" href="/static/spid/bootstrap-italia.css"> -->
<!-- <link type="text/css" rel="stylesheet" href="/static/eidas/css/eidas-sp-access-button.min.css"> -->

<link rel="stylesheet" href="/static/css/style.css">
<link type="text/css" rel="stylesheet" href="/static/spid/spid-sp-access-button.css">

<!-- Bootstrap Italia CSS -->
<link href="css/bootstrap-italia.min.css" rel="stylesheet">
<!-- ita-buyyon CSS -->
<link href="css/ita.min.css" rel="stylesheet">
<link href="css/ita-font.min.css" rel="stylesheet">
</head>
<body>
<!-- Container - Body of page-->
Expand Down Expand Up @@ -76,19 +74,13 @@ <h3>SPID o CIE</h3>
</div>
<div class="row">
<div class="col-lg-12 text-center button-container ">
<!-- AGID - SPID IDP BUTTON SMALL "ENTRA CON SPID" * begin * -->
<a href="#" class="btn btn-outline-primary btn-lg btn-me w-100" spid-idp-button="#spid-idp-button-xlarge-post" aria-haspopup="true" aria-expanded="false">
<span><img class="icon buttonicon" src="/static/spid/spid_icon.svg" onerror="this.src='img/spid-ico-circle-bb.png'; this.onerror=null;" alt=""></span>
<span>Entra con SPID</span>
</a>
<div id="spid-idp-button-xlarge-post" class="spid-idp-button spid-idp-button-tip spid-idp-button-relative">
<ul id="spid-idp-list-medium-root-get" class="spid-idp-button-menu" aria-label="spid idp list">
<li class="spid-idp-support-link"><a href="https://www.spid.gov.it/">Maggiori informazioni</a></li>
<li class="spid-idp-support-link"><a href="https://www.spid.gov.it/richiedi-spid">Non hai SPID?</a></li>
<li class="spid-idp-support-link"><a href="https://www.spid.gov.it/serve-aiuto">Serve aiuto?</a></li>
</ul>
<div class='ita ita-dropdown ita-l ita-fixed mb-3'>
<a href="#" class="btn btn-outline-primary btn-lg btn-me w-100" spid-idp-button="#spid-idp-button-xlarge-post" aria-haspopup="true" aria-expanded="false">
<span><img class="icon buttonicon" src="/static/spid/spid_icon.svg" onerror="this.src='img/spid-ico-circle-bb.png'; this.onerror=null;" alt=""></span>
<span>Entra con SPID</span>
</a>
<div class='ita-menu' role='menu' data-spid-remote></div>
</div>
<!-- AGID - SPID IDP BUTTON SMALL "ENTRA CON SPID" * end * -->
</div>
</div>
<div class="row">
Expand All @@ -104,7 +96,7 @@ <h3>Altre identità digitali</h3>
<div class="col-lg-12 text-center button-container">
<!-- AGID - eIDAS IDP BUTTON SMALL "ENTRA CON EIDAS" * begin * -->
<a href="/Saml2/disco?entityID=https://sp-proxy.eid.gov.it/spproxy/idpit&return=https://localhost/Saml2/disco" class="btn btn-outline-primary btn-lg btn-me w-100" eidas-idp-button="#eidas-idp-button-xlarge-post" aria-haspopup="false" aria-expanded="false">
<span><img class="icon buttonicon" src="/static/eidas/img/ficep-it-eidas-lb.svg" onerror="this.src='eidas/img/ficep-it-eidas-lb.png'; this.onerror=null;" alt="" /></span>
<span><img class="icon buttonicon" src="/static/img/ficep.svg" onerror="this.src='eidas/img/ficep-it-eidas-lb.png'; this.onerror=null;" alt="" /></span>
<!-- <svg class="icon buttonicon"><use style="fill: #0065cc;" href="./bootstrap-italia/svg/sprites.svg#it-files" xlink:href="/bootstrap-italia/dist/svg/sprites.svg#it-files"></use></svg> -->
<span>Login with eIDAS</span>
</a>
Expand Down Expand Up @@ -304,8 +296,9 @@ <h3 class="sr-only">Sezione Link Utili</h3>
</div>
</div>
</footer> -->
<script src="/static/bootstrap-italia/js/bootstrap-italia.bundle.min.js"></script>
<script src="/static/spid/bootstrap-italia.js"></script>
<script src="/static/spid/spid-sp-access-button.js"></script>
<script src="js/ita.min.js"></script>
<script src="js/bootstrap-italia.bundle.min.js"></script>

<script>var spid_idps = new Ita;</script>
</body>
</html>
Loading

0 comments on commit a70e6c2

Please sign in to comment.