Download the PHP package euroglas/authemail without Composer

On this page you can find all versions of the php package euroglas/authemail. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package authemail

AuthEmail

Parte del servidor REST para EUROGLAS

Autenticación de clientes, usando email y contraseñas

Archivos

authemail
├───src
│   └───authemail.php
├───.gitignore
├───composer.json
├───index.php
├───iniciaServidorDePruebas.php
├───servidor.ini
├───LICENSE
└───README.md

Directorio src

Contiene el archivo que implementan el modulo, extendiendo la clase base auth (que implementa las interfaces authInterface y restModuleInterface)

Directorio Raiz

Contiene los archivos para pruebas del modulo.

Archivo Descripcion
.gitIgnore blah
composer.json Manejo de requerimientos
index.php Implementacion del servidor de pruebas
servidor.ini Configuracion del servidor
iniciaServidorDePruebas.bat Script para arrancar el servidor usando el servidor interno de PHP
LICENSE Licencia de uso de este paquete
README .md éste archivo

Configuración

Llave Explicación
ServerName="Nombre" Nombre del servidor
ModoDebug = 1 Habilita el modo de desarrollo
[Modulos]
authemail=1
Habilita el modulo authemail, queda registrado como proveedor de Autorizaciones

Token

Para el servidor, estamos haciendo uso de los JASON Web Token (JWT). Para usarlos, se requieren DOS pasos:

  1. Intercambiar credenciales (la llave) por un token.
    1. Se hace una solicitud al servidor, incluyendo las credenciales requeridas
    2. El servidor valida las credenciales y si son validas, devuelve un TOKEN
    3. Si las credenciales NO son validas, se regresa un error
  2. Todas las llamadas que requieran token, deben incluirlo:
    Encabezado HTTP: Authorization
    Formato : Bearer <token> (OJO: Es sensible a mayuscula/minuscula)

URLs

Metodo URL TOKEN Descripción
POST /auth NO Intercambia credenciales por un Token JWT.
Como credenciales, se espera recibir los parametros:
email
Correo electrónico del usuario
password
Contraseña del usuario
Ejemplo: ejemplo.com?email={correo}&password={contraseña}
GET /testoken SI Valida el token proporcionado
GET /auth/name SI Nombre del cliente autenticado

#

Uso del modulo authkey en un servidor REST de EUROGLAS

Si quieres hacer uso de la utileria de autocarga de clases de composer, incluye esto en tu script php (index.php):

NOTA Si quieres saber más sobre el servidor REST, consulta la informacion del modulo euroglas/eurorest


All versions of authemail with dependencies

PHP Build Version
Package Version
Requires emarref/jwt Version ^1.0.3
euroglas/dbaccess Version @dev
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package euroglas/authemail contains the following files

Loading the files please wait ....