Skip to content

phc-dm/phc-auth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

auth-poisson

Servizio di autenticazione attraverso LDAP

Interfaccia

  • POST /login

    { 
        "username": "<username>", 
        "password": "<password>" 
    }

    Controlla le cretenziali dell'utente <username> siano <password> e ritorna un token identificativo per richieste successive (se un token è già associato all'utente ne crea uno nuovo).

  • POST /logout

    { "token": "<token>" }

    Distrugge il token dell'utente <username> o eventualmente dell'utente associato a <token>.

  • GET /token?username=<username>

    Ritorna il token associato all'utente

  • GET /users

    Ritorna una lista degli utenti con tutte le informazioni pubbliche fornite da LDAP.

  • GET /users?username=<username>

    Ritorna tutte le informazioni pubbliche dell'utente <username> fornite da LDAP.

  • TODO POST /update

    {
        // A valid token for the given user  
        "token": "<token>",
        // Name of the property to change  
        "property": "<email | ...>",
        // New value to set
        "value": "<value>"
    }

    Cambia la proprietà <property> dell'utente associato a <token> con il nuovo valore fornito.

  • TODO POST /change-password

    {
        // A valid token for the given user  
        "token": "<token>",
        // New password
        "password": "<new-password>",
    }

    Cambia la password dell'utente associato a <token> con <new-password>

  • GET /debug

    Logga informazioni di debug sulle sessioni correnti.

About

Servizio di autenticazione attraverso LDAP

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages