Commit graph

52 commits

Author SHA1 Message Date
Stephane Martin 328f41b85c authentication by reverse proxy 2016-09-05 23:36:59 +02:00
Stephane Martin c9b8fbfcba merge last conflict 2016-09-05 09:37:59 +02:00
Stephane Martin 0288038111 make imports absolute 2016-09-05 01:31:01 +02:00
Stephane Martin 3d980e1459 make imports absolute 2016-09-05 01:31:00 +02:00
stef 6a043f4a7d more readable imports 2016-09-05 01:30:37 +02:00
stef 2731531768 systematic use of from __future__ import absolute_import. it eliminates import NAME confusion with very common names (eg. import ldap is very ambiguous: can be a ldap module from realms-wiki, a ldap module from flask-ldap-login, or python-ldap module.
also cleant up a bit the import towards PEP8: builtin modules first, then 3rd party python packages, then local packages
2016-09-05 01:29:29 +02:00
Chase Sterling 2ce6c2d314 Merge branch 'master' into oauth_redirect
# Conflicts:
#	realms/modules/auth/views.py
2016-09-04 12:25:57 -04:00
Matthew Scragg a47d7e2471 Merge pull request #161 from gazpachoking/update_flask
Update flask versions
2016-09-02 12:56:21 -04:00
Chase Sterling 33aa2b851e Make modules contain their own static files and templates 2016-08-15 23:06:05 -04:00
Chase Sterling f175f12970 Merge remote-tracking branch 'origin/master' into update_flask 2016-07-28 10:22:37 -04:00
Chase Sterling 36d3fb7215 Fix some deprecation warnings with newer flask version 2016-07-14 17:59:08 -04:00
Chase Sterling 2d3de77bf6 Use github's anonymous email standin when github auth user has email as private 2016-07-13 22:47:24 -04:00
Chase Sterling 57e98cdd9d Fix CLI registration for module command groups 2016-07-10 17:47:43 -04:00
Chase Sterling aa0a8a2aa8 Store next url redirect for in session to work with oauth login callbacks 2016-07-08 23:39:11 -04:00
Sachi King 695dba98f9 Use properties in config for pass-through compat vars
Strings are immutable, so when one variable changes the other will not,
as such there is variance on config load between variables that should
be the the value of another variable.

To solve that I've moved the config into a class and made those values
read-only properties to the loaded values.

Closes: #137 #138
2016-06-05 22:03:49 +10:00
Lars Immisch 198a0d01e5 Fix LDAP login 2016-01-31 01:10:08 +01:00
Matthew Scragg de8616427e fix facebook token name 2015-12-06 18:22:13 -06:00
Matthew Scragg 86fd1062fe fix layout in small view 2015-12-06 17:17:44 -06:00
Matthew Scragg 1fe6ce6f8c Clean up OAuth buttons 2015-11-22 17:13:59 -06:00
Matthew Scragg 04b5e04593 Dynamically enable modules based on config values 2015-11-22 17:12:26 -06:00
Matthew Scragg 4063754e12 update readme 2015-11-22 11:19:11 -06:00
Matthew Scragg 1e62997272 change github fieldmap
define tokengetter for each provider
2015-11-13 17:25:55 -06:00
Matthew Scragg 027abd0658 remove tokengetter callback 2015-11-13 17:04:47 -06:00
Matthew Scragg c3ac176c15 set token in session before making oauth request 2015-11-13 17:03:58 -06:00
Matthew Scragg 7178a6190e define tokegetter 2015-11-13 16:55:42 -06:00
Matthew Scragg 6edaec3876 get oauth data from providers 2015-11-12 17:19:26 -06:00
Matthew Scragg 0b1c55f6a5 fallback to default avatar if email is not set
auth submodules are registered with initialized
check if auth.local is loaded before accessing registration route
check DB_URI before attempt to create db
2015-11-06 17:44:48 -06:00
Matthew Scragg e635be8961 oauth field map to include lists to access nested response dicts
oauth authorize callback to use absolute url, needed by Facebook
2015-10-26 16:47:32 -05:00
Matthew Scragg c92cc46db2 add more oauth providers, really authenticate 2015-10-21 17:34:20 -05:00
Matthew Scragg 4375db4f8c add github support, fix redirect on oauth 2015-10-21 09:09:42 -05:00
Matthew Scragg 4fede50136 enable oauth, set correct default oauth success endpoint 2015-10-20 17:18:43 -05:00
Matthew Scragg a0124baf1d oauth work 2015-10-15 17:36:47 -05:00
Matthew Scragg e9709b6c8f ldap second pass, working state 2015-10-15 15:55:38 -05:00
Matthew Scragg 838eb3cb06 2nd pass on oauth, making more generic 2015-10-14 23:08:56 -05:00
Matthew Scragg 2eaf09dc78 ldap first pass 2015-10-14 17:36:22 -05:00
Matthew Scragg 3c2f4a0445 first pass, non-working 2015-10-13 22:52:30 -05:00
Lars Immisch a8e4ec69bf Fix gravatar URL and one possible redirect loop 2015-09-22 13:33:26 +02:00
Matthew Scragg bd41eaac4e use app context aware cli, fixes #65 2015-07-22 12:01:59 -05:00
Matthew Scragg 6c7095ec5a updated dockerfile, spacing adjustments 2014-11-17 11:25:26 -06:00
Matthew Scragg 2d6f368ff1 fix #32 2014-10-30 17:59:19 -05:00
Matthew Scragg d2171f9498 cli adjustments 2014-10-23 18:58:58 -05:00
Matthew Scragg 38e5ef85c0 use application factory, WIP 2014-10-21 16:06:27 -05:00
Matthew Scragg 2c6b06a0a7 add tests file to auth 2014-10-09 10:39:42 -05:00
Matthew Scragg eb12c84e9a Added RDBMS info
Canonical names to forced to lowercase
Made user model compatible to other DBs
CSS adjustments
Basic Firepad support (no presence info)
Cleaned up JS a bit
Added ability to remove draft from localstorage
Added support for drafts on multiple pages
Alert user if page changes, issue #1
2014-10-03 13:49:18 -05:00
Matthew Scragg 2895308667 implements #4, use env to configure app 2014-09-29 15:22:20 -05:00
Matthew Scragg 0b213883ed Fix load token bug 2014-09-18 10:42:32 -05:00
Matthew Scragg 2856dc076f Fixes #17
Fix bug with loading token
Updated readme
Remove realms-wiki bash script (redundant)

Updated install.sh
Using setuptools to create cli entry point
Upstart script sets gid and uid
2014-09-18 10:13:33 -05:00
Matthew Scragg b8531a0347 add config option to disable registration
add command to create user
2014-09-13 22:47:17 -05:00
Matthew Scragg ad401da4f1 worked on assets bundling, added admin field 2014-09-03 21:29:47 -05:00
Matthew Scragg 86f0549e44 WIP 2014-08-30 10:06:12 -05:00