pgAdmin 4 commit: Add authentication and the basis of the browser modul - Mailing list pgadmin-hackers

From Dave Page
Subject pgAdmin 4 commit: Add authentication and the basis of the browser modul
Date
Msg-id E1YEKC9-0001e9-8z@gothos.postgresql.org
Whole thread Raw
List pgadmin-hackers
Add authentication and the basis of the browser module.

A user authentication module based on flask-security is added, which
allows users to login and change/recover passwords etc. Custom templates
are included for the user/password UIs.

A new setup script will initialise the user (and later settings) DB,
adding the first user and granting them an Administrator role.

A redirects blueprint module is added to handle simple URL redirects.

A browser module is added and currently renders a skeleton page with
a menu bar, gravatar and jumbotron.

NOTE FOR LATER: Currently this code might make the nice basis for any
web app that needs user management and plugins. Hmmm....

Branch
------
master

Details
-------
http://git.postgresql.org/gitweb?p=pgadmin4.git;a=commitdiff;h=10515431c7ce77434df425e877753c39365139ec

Modified Files
--------------
requirements.txt                                   |   11 +++
web/config.py                                      |   42 ++++++++++-
web/pgadmin/__init__.py                            |   31 ++++++--
web/pgadmin/browser/templates/index.html           |   46 ++++++++++++
web/pgadmin/browser/templates/messages.html        |   12 ++++
web/pgadmin/browser/views.py                       |   37 ++++++++++
web/pgadmin/redirects/views.py                     |   24 +++++++
web/pgadmin/static/css/overrides.css               |    1 -
.../static/fonts/glyphicons-halflings-regular.eot  |  Bin 20335 -> 20335 bytes
.../static/fonts/glyphicons-halflings-regular.ttf  |  Bin 41280 -> 41280 bytes
.../static/fonts/glyphicons-halflings-regular.woff |  Bin 23320 -> 23320 bytes
web/pgadmin/static/img/logo-256.png                |  Bin 0 -> 41430 bytes
web/pgadmin/static/img/logo-right-256.png          |  Bin 0 -> 41468 bytes
.../templates/security/change_password.html        |   13 ++++
web/pgadmin/templates/security/fields.html         |   10 +++
.../templates/security/forgot_password.html        |   12 ++++
web/pgadmin/templates/security/login_user.html     |   13 ++++
web/pgadmin/templates/security/messages.html       |   12 ++++
web/pgadmin/templates/security/panel.html          |   21 ++++++
web/pgadmin/templates/security/reset_password.html |   12 ++++
web/pgadmin/templates/security/watermark.html      |    5 ++
web/pgadmin/utils/views.py                         |    2 +
web/settings_model.py                              |   37 ++++++++++
web/setup.py                                       |   74 ++++++++++++++++++++
24 files changed, 408 insertions(+), 7 deletions(-)


pgadmin-hackers by date:

Previous
From: Ashesh Vashi
Date:
Subject: Re: Patch for database filtering in Connect to Server dialog
Next
From: Dave Page
Date:
Subject: pgAdmin 4 commit: Support a desktop authentication mode.