Giter Club home page Giter Club logo

spid-wordpress's Introduction

SPID-WordPress

Plugin per integrare il sistema di autenticazione SPID all'interno di WordPress.

Sotto il cofano il plugin utilizza la libreria spid-sp-simplesamlphp.

⚠️ Attenzione! Questo progetto non è più manutenuto dai suoi autori. Per Integrare SPID in Wordpress raccomandiamo vivamente di utilizzare la SDK wp-spid-italia.

TODO

Contenuto

La struttura del repository contiene i seguenti file:

  • /spid-wordpress - Il codice del plugin vero e proprio
  • Vagrantfile - Descrive il contenuto della vagrant box
  • /scripts - Contiene i file di configurazione per la vagrant box
  • /doc - Documentazione del plugin

Installazione

ATTENZIONE: Questo plugin è formalmente pronto ma NON È STATO MAI TESTATO.

Da un'installazione funzionante di WordPress, installare il plugin copiando la directory spid-wordpress fra i plugin di WordPress e lanciare composer install:

cp -R /my/home/spid-wordpress/spid-wordpress /path/to/wordpress/wp-content/plugins
cd /path/to/wordpress/wp-content/plugins/spid-wordpress
composer install

In seguito, da WordPress, abilitare il plugin.

Configurazione

Alcuni comportamenti inerenti WordPress sono configurabili direttamente nel menù Impostazioni > SPID login.

Il comportamento dell'autenticazione SPID è gestito dalla libreria SPID SP SimpleSamlPHP. Rifarsi alla sua documentazione.

Hacking

Riteniamo che sia più semplice installare una LAMP + WordPress, che installare Vagrant :) In ogni caso potete lanciare vagrant up dalla directory principale del repositoy per ottenere una LAMP con WordPress con plugin installato, accessibile all'indirizzo http://localhost:8080.

Lo sviluppo di questo repository è attualmente mantenuto dall'Italian Linux Society ed è pubblicato dall'Agenzia per l'Italia digitale. Ogni contributo esterno è assolutamente bene accetto sotto forma di issue e/o pull request. Ogni contributo deve avvenire nel rispetto dei termini della licenza. Sono particolarmente apprezzate le pull request composte da piccoli commit atomici (scoraggiando mega commit monolitici).

Licenza

Copyright (C) 2016-2017 Italian Linux Society, Valerio Bozzolan, Ludovico Pavesi.

Questo programma è software libero: puoi redistribuirlo e/o modificarlo rispettando le condizioni della GNU General Public license pubblicata dalla Free Software Foundation. Si considera sia la versione 3 della Licenza, o (a tua discrezione) qualsiasi versione successiva. Questo programma è distribuito nella speranza che sia utile ma SENZA ALCUNA GARANZIA; senza neppure qualsiasi implicità garanzia di COMMERCIABILITÀ o di IDONEITÀ AD UN PARTICOLARE SCOPO. Vedi la GNU General Public License per ulteriori dettagli.

Dovresti aver ricevuto una copia della GNU General Public License insieme a questo programma. In caso contrario, visita http://www.gnu.org/licenses/.

ATTENZIONE: Questa licenza di software libero NON copre i loghi dei vari IDP che sono da ritenersi sotto licenza "TUTTI I DIRITTI RISERVATI" ed appartenenti ai legittimi proprietari. Vedi qui.

spid-wordpress's People

Contributors

guidoiaquinti avatar lvps avatar mattoide avatar peppelinux avatar rasky avatar salvorapi avatar umbros avatar valerio-bozzolan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

spid-wordpress's Issues

Richiesta sulla Stato di salute del progetto

Ciao @valerio-bozzolan

Vorrei chiederti aggiornamenti sulla Roadmap di questo progetto per risoluzione delle issues e delle Pull Request.
Abbiamo ricevuto alcune segnalazioni da parte degli sviluppatori che ci indicano che questo repository conterrebbe risorse
non allineate con lo stato attuale delle Specifiche SPID.

Spero di ottenere un tuo gentile feedback entro la prossima settimana,
Grazie e a presto

Dependecy not found

In "spid-wordpress/spid-wordpress/composer.lock" at line 10 dev4pa/simplespidphp does not exist.

It blocks "composer install".

Solution: delete composer.lock file and "run composer install"

Evitare font esterno

Qui sarebbe meglio fare a meno di questa risorsa remota:

@import url(https://fonts.googleapis.com/css?family=Titillium+Web:400,600);

Ricordarsi che Google effettua content negotiation nazista in base all'UA e quindi non basta wgettarlo.

Risposta da Firefox 54 e Chromium 61 da Debian GNU/Linux:

/* latin-ext */
@font-face {
  font-family: 'Titillium Web';
  font-style: normal;
  font-weight: 400;
  src: local('Titillium Web Regular'), local('TitilliumWeb-Regular'), url(https://fonts.gstatic.com/s/titilliumweb/v6/7XUFZ5tgS-tD6QamInJTcSo_WB_cotcEMUw1LsIE8mM.woff2) format('woff2');
  unicode-range: U+0100-024F, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Titillium Web';
  font-style: normal;
  font-weight: 400;
  src: local('Titillium Web Regular'), local('TitilliumWeb-Regular'), url(https://fonts.gstatic.com/s/titilliumweb/v6/7XUFZ5tgS-tD6QamInJTcZSnX671uNZIV63UdXh3Mg0.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2212, U+2215;
}
/* latin-ext */
@font-face {
  font-family: 'Titillium Web';
  font-style: normal;
  font-weight: 600;
  src: local('Titillium Web SemiBold'), local('TitilliumWeb-SemiBold'), url(https://fonts.gstatic.com/s/titilliumweb/v6/anMUvcNT0H1YN4FII8wpr_SNRT0fZ5CX-AqRkMYgJJo.woff2) format('woff2');
  unicode-range: U+0100-024F, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Titillium Web';
  font-style: normal;
  font-weight: 600;
  src: local('Titillium Web SemiBold'), local('TitilliumWeb-SemiBold'), url(https://fonts.gstatic.com/s/titilliumweb/v6/anMUvcNT0H1YN4FII8wpr46gJz9aNFrmnwBdd69aqzY.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2212, U+2215;
}

Risposta da wget 1.18:

@font-face {
  font-family: 'Titillium Web';
  font-style: normal;
  font-weight: 400;
  src: local('Titillium Web Regular'), local('TitilliumWeb-Regular'), url(https://fonts.gstatic.com/s/titilliumweb/v6/7XUFZ5tgS-tD6QamInJTcU3KvHLhcNjEHFQzwNtdMQY.ttf) format('truetype');
}
@font-face {
  font-family: 'Titillium Web';
  font-style: normal;
  font-weight: 600;
  src: local('Titillium Web SemiBold'), local('TitilliumWeb-SemiBold'), url(https://fonts.gstatic.com/s/titilliumweb/v6/anMUvcNT0H1YN4FII8wpr4e2tK5W43RXgBRKkM4A5Qg.ttf) format('truetype');
}

Backend authsource e attribute mapping?

@salvorapi Parlando di quello che suggerivi, se l'authsource è la stringa indice della configurazione dell'omonimo file, non dovrebbe essere addirittura variabile dall'utente in fase di login (tipo dropdown), nel caso magari voglia connettersi con SPID, o con Shibboleth... dato che se ho capito bene quel file è fatto apposta per contenere entrambi e scegliere quello che vuole l'utente sul momento? (Naturalmente correggimi se dico ca*****)

Completamento plugin WordPress

[Inserisco questa issue per poter elencare questo progetto tra quelli su cui lavoreremo ad Hack.Developers]

Il plugin sembra abbastanza completo (non l'ho testato) ma nel README c'è scritto: "WORK IN PROGRESS: NON INSTALLATE QUESTO PLUGIN". Bisogna quindi verificare lo stato di funzionamento e documentare installazione e configurazione (incluso SimpleSAMLphp).

Forse @valerio-bozzolan e @salvorapi che lo hanno sviluppato finora (grazie!) possono aiutarci a capire lo stato del lavoro per facilitare contributi esterni?

SimpleSAMLPHP Path

Fixare la pagina di settings che ora dà Option simplesamlphp_path unsupported!.

SPID button and CSS reset

Some WordPress themes have this CSS rule:

*,
*:before,
*:after {
	-webkit-box-sizing: inherit;
	-moz-box-sizing: inherit;
	box-sizing: inherit;
}

This renders SPID button IDP images very smaller than usual:

SPID button with small logos

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.