228 Commits

Author SHA1 Message Date
Adarnof
deb94c06fd prevent error being raised on OK empty response
closes #554
2016-10-18 13:45:15 -04:00
Adarnof
e242b8cfec correct dict unpacking of escape characters
closes #554
2016-10-18 13:16:17 -04:00
Adarnof
90d88c4598 avoid keyerror when determining groups to remove 2016-10-18 00:43:28 -04:00
Adarnof
1b4f5e4e88 Adarnof's Little Things (#547)
* Port to Django 1.10
Initial migrations for current states of all models. Requires faking to retain data.
Removed all references to render_to_response, replacing with render shortcut.
Same for HttpResponseRedirect to render shortcut.
Corrected notification signal import to wait for app registry to finish loading.

* Correct typos from render conversion

* Modify models to suppress Django field warnings

* Script for automatic database conversion
 - fakes initial migrations to preserve data
Include LOGIN_URL setting

* Correct context processor import typo

* Removed pathfinder support.
Current pathfinder versions require SSO, not APIs added to database.
Conditionally load additional database definitions only if services are enabled.
Prevents errors when running auth without creating all possible databases.

* Condense context processors

* Include Django 1.10 installation in migrate script
Remove syncdb/evolve, replace with migrate for update script

* Replaced member/blue perms with user state system
Removed sigtracker
Initial migrations for default perms and groups
Removed perm bootstrapping on first run

* Clean up services list

* Remove fleet fittings page

* Provide action feedback via django messaging
Display unread notification count
Correct left navbar alignment

* Stop storing service passwords.
Provide them one time upon activation or reset.
Closes #177

* Add group sync buttons to admin site
Allow searcing of AuthServicesInfo models
Display user main character

* Correct button CSS to remove underlines on hover

* Added bulk actions to notifications
Altered notification default ordering

* Centralize API key validation.
Remove unused error count on API key model.
Restructure API key refresh task to queue all keys per user and await completion.
Closes #350

* Example configuration files for supervisor.
Copy to /etc/supervisor/conf.d and restart to take effect.
Closes #521
Closes #266

* Pre-save receiver for member/blue state switching
Removed is_blue field
Added link to admin site

* Remove all hardcoded URLs from views and templates
Correct missing render arguments
Closes #540

* Correct celeryd process directory

* Migration to automatically set user states.
Runs instead of waiting for next API refresh cycle. Should make the transition much easier.

* Verify service accounts accessible to member state

* Restructure project to remove unnecessary apps.
(celerytask, util, portal, registraion apps)
Added workarounds for python 3 compatibility.

* Correct python2 compatibility

* Check services against state being changed to

* Python3 compatibility fixes

* Relocate x2bool py3 fix

* SSO integration for logging in to existing accounts.

* Add missing url names for fleetup reverse

* Sanitize groupnames before syncing.

* Correct trailing slash preventing url resolution

* Alter group name sanitization to allow periods and hyphens

* Correct state check on pre_save model for corp/alliance group assignment

* Remove sigtracker table from old dbs to allow user deletion

* Include missing celery configuration

* Teamspeak error handling

* Prevent celery worker deadlock on async group result wait

* Correct active navbar links for translated urls.
Correct corp status url resolution for some links.
Remove DiscordAuthToken model.
2016-10-16 18:01:14 -04:00
moriartyj
812268211c Added Discord nickname syncing with EVE alliance character name (#525) 2016-09-03 23:13:54 -04:00
Adarnof
b0c41598cf limit usernames to 30 characters 2016-08-10 18:40:06 -04:00
Adarnof
f119d06956 limit usernames to 30 characters 2016-08-10 18:39:31 -04:00
Csaba Turek
319567f1ac "update authorization header" fix (#514) 2016-08-06 17:23:21 -04:00
Adarnof
9435db4a32 update authorization header
include token_type as required by recent API changes
2016-08-05 22:58:08 -04:00
Adarnof
eeea5ce14e capture error code on user deletion issues
addresses #501
2016-07-11 15:33:32 +00:00
Adarnof
e0693e7ca8 use 404 to test user not on server 2016-06-15 21:42:26 -04:00
Adarnof
b548d8a87a initialize logger 2016-06-14 10:02:31 -04:00
Adarnof
2da3cbfb70 correct guild members endpoint url 2016-06-14 00:37:07 -04:00
Adarnof
54731d4aea correct user deletion headers 2016-06-13 10:42:19 -04:00
Adarnof
8cbfa954fa catch IndexError when getting fitting doctrine #
addresses #462
2016-06-13 10:04:57 -04:00
Adarnof
1fd423e20f Discord OAuth Integration (#468)
* Implement Discord OAuth
 - extend group caching to Discord
 - use bot token to manipulate api
 - migrate to official API
Addresses #419

* Remove virtualenv wrapper

* Discord OAuth integration playtest corrections
Closes #419
2016-06-13 00:16:27 +00:00
Meletis Flevarakis
e6b08fca88 XenForo integration initial version (#459)
* XenForo integration beta

* Removing debug loggers
2016-06-11 21:22:58 +00:00
Adarnof
842080f3de log warnings on failed connection to fleetup 2016-06-10 22:35:02 -04:00
Adarnof
020a3022f1 Handle empty responses from fleetup
Closes #413
Closes #421
2016-06-10 22:34:03 -04:00
Adarnof
94cd0b98d5 sanitize apostrophes in username
closes #442
2016-06-10 22:04:58 -04:00
Adarnof
077531fa5a retain sanitized spaces
closes #465
2016-06-10 22:03:31 -04:00
moriartyj
cce4361eeb Allows automatic update of Discord avatar to EVE avatar (#450)
* Automatic rejection of old API IDs

* Added API ID fudge factor

* Added toggle-able options for api key rejection

* Clarified ValidationError message

* Allows automatic update of Discord avatar to EVE avatar
2016-06-02 21:17:52 +00:00
Adarnof
921be2d73f sanitize single apostrophes 2016-05-11 13:11:57 -04:00
Adarnof
18b1a576d7 remove check for dictionary structure
allows exceptions to occur for logging
2016-05-09 17:50:54 -04:00
Adarnof
8a691fcd6b log TS3 errors on user creation
returns no username on failure to prevent storing empty perm key in authservicesinfo models
2016-05-09 17:03:53 -04:00
Adarnof
d59c27aba4 move data parsing to try block 2016-04-29 21:58:05 -04:00
Adarnof
09f10b383c elevate loglevel of failed pathfinder activation 2016-04-29 21:53:23 -04:00
Adarnof
1abeba5658 Merge pull request #399 from johanko/fleetup
Fleetup
2016-04-29 14:51:03 -04:00
johanko
c26f1af41c Update fleetup_manager.py 2016-04-29 10:52:09 +02:00
Adarnof
4dbf014b31 reduce loglevel of absent corp api key 2016-04-29 01:38:56 -04:00
johanko
d2865c97e1 API call time-out handling 2016-04-21 10:59:39 +00:00
johanko
2dd531c2b7 Merge branch 'master' of https://github.com/R4stl1n/allianceauth into R4stl1n-master 2016-04-21 06:32:18 +00:00
Mr McClain
5025ab8ffe Pathfinder Integration (#394)
tested and working
2016-04-17 15:02:50 -05:00
Adarnof
e29c1d3295 Discourse (#377)
* Initial work on Discourse integration

* Views for discourse

* Discourse group updates
Correct password display

* Removed password functions
Changed delete to suspend user forever
Added unsuspend check to add_user
2016-04-17 14:17:32 -05:00
Mr McClain
490d1944de removed redundant code (#386)
* Update ipboard_manager.py

* Update market_manager.py

* Update mumble_manager.py

* Update openfire_manager.py

* Update phpbb3_manager.py

* Update smf_manager.py
2016-04-15 11:35:18 -05:00
Mr McClain
4edcfafc8a Escaped mysql character to prevent errors 2016-04-15 03:57:52 -05:00
Mr McClain
35e69847ea Escaped mysql character to prevent errors 2016-04-15 03:57:32 -05:00
Mr McClain
445c1e82e5 Escaped mysql character to prevent errors 2016-04-15 03:57:13 -05:00
Mr McClain
4ca9a96f8d Escaped mysql character to prevent errors 2016-04-15 03:56:40 -05:00
Mr McClain
e69744b7eb Escaped mysql character to prevent errors 2016-04-15 03:56:22 -05:00
Mr McClain
3b8a62adaf Escaped mysql character to prevent errors 2016-04-15 03:55:55 -05:00
Mr McClain
ab9423ec1f Fixed Security Issue (#380)
* fixed security issue

* fixed security issue

* fixed security issue

* fixed security issue

* fixed security issue

* fixed security issue
2016-04-14 10:12:00 -05:00
Mr McClain
93d3481527 Addresses #379 2016-04-14 08:06:50 -05:00
Mr McClain
877c6511f3 Addresses #379 2016-04-14 08:06:28 -05:00
Mr McClain
affbc946a7 Addresses #379 2016-04-14 08:06:00 -05:00
Mr McClain
adde2bb7a8 Addresses #379 2016-04-14 08:05:36 -05:00
Mr McClain
3a508421be Addresses #379 2016-04-14 08:05:13 -05:00
Mr McClain
a4a23e3dde Addresses #379 2016-04-14 08:04:33 -05:00
Mr McClain
321ea9cca3 Closes #379 2016-04-14 08:03:37 -05:00
Mr McClain
6f8e478baf Evernus Alliance Market Integration (#369)
* Added SMF Forum Support

* removed comment

* Fixed bugs.

* removed unused SQL statement

* Fixed Grammer in debug code

* Fixed Null Bug

* Update operationmanagement.html

* fixed bug

* fixed error

* Users now show up on the posts correctly

* Evernus Alliance Market Integration

* removed duplicate function

* empty string handling
2016-04-07 20:46:14 -05:00