The authentication and authorization system with access management system, adaptive 2FA and OAuth2.0 implementation.
git clone --recurse-submodules https://github.com/bachm44/ZPI-demo.git
or
git clone --recurse-submodules [email protected]:bachm44/ZPI-demo.git
- docker deamon running
make
In order to add user, use https://ams.zpi.localtest.me.
Password for newly created account is sent to email address provided during registration.
For convenience sake ./seed.py
seeds default user and
Client. Password is sent to [email protected]. Mail client
configuration is described here.
The library provides authorize button used in demo application. The button redirects to authentication page with appropriate parameters.
Source code: https://github.com/bachm44/ZPI-authorize-lib
Services are hosted using Nginx with the use of localtest.me
domain conveniently
pointing to 127.0.0.1. For more information see proxy/nginx.conf
.
Before usage please validate if domain still points there using
this service.
The system uses https
protocol with self-signed SSL certificates. The
project provides sample certificates inside proxy/certs/out
.
Those certificates should be imported in the browser of
your choice. In order to generate new certificates use
make cert
command and applying everywhere default values (by clicking
Enter) and setting required passphase.
Instead of importing certificates to your browser, you can skip validation by clicking proceed with caution (or equivalent).
Configuration available inside proxy
directory.
Demo application (https://demo.zpi.localtest.me)
The demo application (Client) consists of authorize button used for obtaining access token by the user.
Source code:
- frontend - https://github.com/bachm44/ZPI-demo-UI
Access management system (https://ams.zpi.localtest.me)
The access management system (AMS) is responsible for access, role and user management through admin console.
Credentials:
- username: admin
- password: admin
Source code:
- backend - https://github.com/Maciag312/ZPI-AMS-service
- frontend - https://github.com/Maciag312/ZPI-AMS-UI
Authentication and authorization server (https://auth.zpi.localtest.me)
The authentication and authorization server responsible for authentication of user and authorization of Client. Authentication button redirects to this domain with appropriate parameters.
Source code:
- backend - https://github.com/bachm44/ZPI-authorize-service
- frontend - https://github.com/bachm44/ZPI-authorize-UI
pgAdmin (https://pgadmin.zpi.localtest.me)
Use to access raw analysis data.
Credentials:
- username: [email protected]
- password: admin
Grafana (https://grafana.zpi.localtest.me)
Visualisation of analysis data.
Credentials:
- username: admin
- password: admin
Configuration available inside grafana
directory.
Mail client configuration:
- port: 587
- domain: localhost
- authenticationMethod: password
- connectionSecurity: none
Registered accounts:
-
user
- username: [email protected]
- password: admin
-
admin
- username: [email protected]
- password: admin
Server configuration available inside docker-mailserver
and docker-compose.yaml
.