Code Monkey home page Code Monkey logo

simplespidphp's Introduction

SimpleSpidphp

This is a Fork of SimpleSAMLphp

Usage

  • Install with Composer, run the following command in your project:
git clone https://github.com/dev4pa/simplespidphp.git
cd simplespidphp
composer install
  • Creazione cartelle di lavoro per logs e certificati
mkdir log
chmod 777 -R log
mkdir cert
  • Copia dei file di template per il file di configurazione di simplesamlphp e il file contenente i servizi da esporre con SPID
cp ../config-template/config.php.spid config/config.php
cp ../config-template/authsources.php.spid config/authsources.php
  • Creazione di un proprio certificato applicativo per la generazione dei metadati da inviare ad AGID
openssl req -newkey rsa:2048 -new -x509 -days 3652 -nodes -out cert/saml.crt -keyout cert/saml.pem

I files generati da questo comando devono essere configurati nel file config/authsources.php

    'nomeservizio-sp' => array(
        'saml:SP',
        'privatekey' => 'saml.pem',
        'certificate' => 'saml.crt',
        // The entity ID of this SP.
        // Can be NULL/unset, in which case an entity ID is generated based on the metadata URL.
        'entityID' => null,

Una volta copiati editarli in modo da personalizzare il proprio server e i propri servizi

  • Configurare il proprio web server in modo da far puntare https://dominio.example.com/simplesaml alla cartella in cui è stato clonato il progetto dev4pa/simplespidphp

  • Per generare il file con i metadata del proprio servizio andare su:

https://dominio.example.com/simplesaml

Nel tab "Federazione" comparirà sotto la voce "Metadati SAML 2.0 SP" il nome del nostro servizio, premere [ Mostra metadati ] ed inviare ad AGID il metadato in formato xml

  • Per provare l'autenticazione andare su:
https://dominio.example.com/simplesaml

Nel tab "Autenticazione" selezionare "Prova le fonti di autenticazione configurate", selezionare il nome del servizio, e scegliere nel menu a tendina il provider (Identity Provider) con il quale si vuol provare l'autenticazione

simplespidphp's People

Contributors

andreassolberg avatar biancini avatar br00k avatar dialogik avatar edelahozuah avatar ghalse avatar gollmann avatar grawity avatar grueneedv avatar hmpf avatar jaimeperez avatar janoppolzer avatar jschlyter avatar lassebirnbaum avatar lon avatar madsfreek avatar manzolo avatar mrvanes avatar nicolasliampotis avatar olavmo-sikt avatar pmeulen avatar pradtke avatar restena-sw avatar s-hal avatar sgomez avatar tdiscuit avatar thijskh avatar tldev avatar tvdijen avatar vrioux avatar

Stargazers

 avatar

Watchers

 avatar  avatar

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.