pgAdmin 4 commit: Add authentication and the basis of the browser modul

From: Dave Page <dpage(at)pgadmin(dot)org>
To: pgadmin-hackers(at)postgresql(dot)org
Subject: pgAdmin 4 commit: Add authentication and the basis of the browser modul
Date: 2015-01-22 16:01:21
Message-ID: E1YEKC9-0001e9-8z@gothos.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: 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(-)

Browse pgadmin-hackers by date

  From Date Subject
Next Message Dave Page 2015-01-26 15:22:15 pgAdmin 4 commit: Support a desktop authentication mode.
Previous Message Ashesh Vashi 2015-01-22 09:39:54 Re: Patch for database filtering in Connect to Server dialog