These forums have been archived and are now read-only.

The new forums are live and can be found at https://forums.eveonline.com/

EVE Technology Lab

 
  • Topic is locked indefinitely.
 

Eve Alliance Auth - Open Source

First post First post
Author
Adarnof
Kingsparrow Wormhole Division
Birds of Prey.
#141 - 2015-04-07 23:14:35 UTC
Adarnof wrote:
Secondly, groups are not all being created and no members have been assigned into them. Celery is in fact running and executing its tasks. Some but not all groups of registered members have been added to Openfire, but they have no members in them.


Found the problem. When creating groups via the admin interface, you cannot use spaces or it will not propagate to openfire.
Adarnof
Kingsparrow Wormhole Division
Birds of Prey.
#142 - 2015-04-07 23:57:24 UTC  |  Edited by: Adarnof
In debugging my issues with broadcasting I've gone into the shell and stepped through the code from allianceauth/services/managers/openfire_manager.py. I first import everything and then issue the commands from the send_broadcast_message method. Here's the complete output, but one area catches my attention:

After issuing the command
Quote:
client.auth(settings.BROADCAST_USER, settings.BROADCAST_USER_PASSWORD, 'broadcast')

It's returning an error
Quote:
Failed SASL authentification: not-authorized


This occurs for the broadcast username/password combination in settings.py as well as when I substitute in my personal username/password which I can connect with using Pidgin.

Anyone have an idea what I should be looking into? As far as I can see the shell opens a connection to the jabber server but is getting hung up when it tries to authenticate.


It seems I can only fix things when I post about it on the forums.
Solution: when setting up OpenFire, when you name the server, call it
Quote:
yourdomain.com
otherwise the auth system will have issues loggin in as broadcast user. If you've already configured it just change the xmpp.domain setting to your domain and restart.
TigerXtrm
KarmaFleet
Goonswarm Federation
#143 - 2015-04-09 13:39:55 UTC  |  Edited by: TigerXtrm
Okay I managed to get this working on a VPS with Ubuntu, guess CentOS just doesn't want to play nice with it. Now on to the next question; is it possible to use this without a full API key? Or at least disable the need for a full API key somehow? And if this is done, what would it break?

Also since all the services are hosted on a different server, how much would that bring down the server requirements for this? Surely it doesn't need 2GB just for hosting the pages and running the scripts a few times a day?

My YouTube Channel - EVE Tutorials & other game related things!

My Website - Blogs, Livestreams & Forums

Adarnof
Kingsparrow Wormhole Division
Birds of Prey.
#144 - 2015-04-11 05:49:20 UTC  |  Edited by: Adarnof
TigerXtrm wrote:
is it possible to use this without a full API key? Or at least disable the need for a full API key somehow? And if this is done, what would it break?


Taking a cursory glance at the code, all I can see are API calls checking current corps of characters on the key. Key type is only enforced when adding the key here.

I've never tried bypassing that, but commenting out those checks and then testing with a non-account non-full API key would tell you in a hurry what's broken. Just note that disabling key type enforcement means people can register with "blank" keys (enough to pull a character+corp iirc) which means auditing them in the Corporation Stats page would be rather pointless.

Edit: eve_api_manager.py, line 18 might throw an exception. Not sure if character-restricted APIs have an "account" to reference.
thebarry
7-2 Ronin
#145 - 2015-04-11 11:28:30 UTC
I got this (mostly) working yesterday, very nice app! The only thing I'm having issues with currently is getting the jabber broadcasts to work, the plugin is installed but none of the options for it show up in the server admin ui. I'm sure I'll get it working tho. Thanks so much for all the work you've put into this Smile
TigerXtrm
KarmaFleet
Goonswarm Federation
#146 - 2015-04-11 12:58:00 UTC
Adarnof wrote:
TigerXtrm wrote:
is it possible to use this without a full API key? Or at least disable the need for a full API key somehow? And if this is done, what would it break?


Taking a cursory glance at the code, all I can see are API calls checking current corps of characters on the key. Key type is only enforced when adding the key here.

I've never tried bypassing that, but commenting out those checks and then testing with a non-account non-full API key would tell you in a hurry what's broken. Just note that disabling key type enforcement means people can register with "blank" keys (enough to pull a character+corp iirc) which means auditing them in the Corporation Stats page would be rather pointless.

Edit: eve_api_manager.py, line 18 might throw an exception. Not sure if character-restricted APIs have an "account" to reference.


Thanks for the info! Do you think it would be possible to change it from a full API to a specific access mask? Or would this involve adding complicated code or some such?

My YouTube Channel - EVE Tutorials & other game related things!

My Website - Blogs, Livestreams & Forums

Adarnof
Kingsparrow Wormhole Division
Birds of Prey.
#147 - 2015-04-11 17:04:19 UTC
TigerXtrm wrote:
Thanks for the info! Do you think it would be possible to change it from a full API to a specific access mask? Or would this involve adding complicated code or some such?


Sure it's doable. Just change the mask in the api manager here to the numeric you want. It would be good to also change the mask of the link provided for creating keys here.
Raynaldo Rivera
Garoun Investment Bank
Gallente Federation
#148 - 2015-04-12 21:34:15 UTC
Sorry about the unannounced leave. Life gets in the way at times. So few things to note.

1. Thanks everyone who is supporting others when trying to setup the auth.
2. Thanks to those who have submitted patches and bug fixes.


However i would like to state that development of the auth is now frozen. This is not to say that i will not be checking pull request and incorporating them into the main development branch. Simply put i am not happy with how it turned out. There are a few things i did wrong because i was in a hurry that make the auth system rather difficult to extend without fully understanding the core design. Specifically adding new services is a nightmare.

So i can't say when but a rewrite will happen when i have more free time to pursue this. Here is a list of the current issues with the auth.

1. Not enough error handling
- There are still some errors that occur and just return 500's

2. Services are not abstracted interfaces.
- Reason adding new services takes so long.

3. No use of any sorta rest api/jquery.
- The current interface is anything but modern where there should be rest api calls and ajax there is just page reloading.

4. No available api built in for third party applications.
- Because of the way its written adding in a api for third party applications is a disaster waiting to happen.

5. Reliant on the soon to be depreciated api
- Needs to make use of the crest api, although im not to sure on the depreciating of the current api.

6. Its to damn difficult for the average joe to setup.
- At first i thought it wouldn't be an issue but the more and more emails i and others get proves that it is still far to difficult to setup.

There is my rant and my current issues with the code thats been written. Like i said before this does not mean i won't be updating the github with the latest pull request and bug fixes it just means i personally will not be developing this system anymore.
thebarry
7-2 Ronin
#149 - 2015-04-21 10:32:06 UTC  |  Edited by: thebarry
Someone smart should do some str.replace ("_", " ") wizardry.
Raynaldo Rivera
Garoun Investment Bank
Gallente Federation
#150 - 2015-04-22 15:32:27 UTC
thebarry wrote:
Someone smart should do some str.replace ("_", " ") wizardry.


Until you realize that the jabber protocol and mumble don't support spaces and breaks entirely ;)
thebarry
7-2 Ronin
#151 - 2015-04-27 21:08:56 UTC
Is there an in game channel where people could discuss this project?
Silf Andven
Doomheim
#152 - 2015-04-28 12:41:16 UTC
willing to pay for installation on my server for a small alliance with a couple of friendly corps

please eve-mail me on Nomak or even better skype me on dwf.nomak
thanks
SCORPl0
Foundation Cutting-Edge
#153 - 2015-05-05 12:33:13 UTC
A test board is available somewhere to show how it looks ?

Looking using it with IPB, I saw tutorial do not take this case (phpBB detailed only).

Looking also for eve fitting IPB tool.

Thanks in advance
SCORPl0
Foundation Cutting-Edge
#154 - 2015-05-06 13:31:53 UTC
Just realized IP Board supported version is 3.x. Unfortunately, I did install version 4.

Any project to update to next ip board version ?
Some more documentation about IP Board and Teamspeak possible ?

One last question is :

- I'm looking to SSO (Single Sign On) some projects availble on the techlabs forums or elsewhere, like LMEve, IPB Wiki, ECM, ... and prevent users to have to register 4 times, or more. What you could give me as advice to accomplish this using the best way ?

Important about that is to define one registration location & managing roles.

Thanks.
thebarry
7-2 Ronin
#155 - 2015-05-09 17:59:47 UTC  |  Edited by: thebarry
Some requests for timer administration:

- Ability to auto-delete old timers(say 10 minutes after timer passes it deletes, or at least goes to an 'old timers' list at bottom)
- On the add timer page, a simple calculator where you enter current eve date/time and then the reinforcement timer so that it generates the exit time for you.
- Ability to edit an existing timer without having to delete and remake it, this is less important if the calculator from above is implemented.
Ceafan Enderas
Iron Miners
#156 - 2015-05-10 23:04:28 UTC
Ok, hate to be the guy what is stuck near the beginning, but have tried doing these processes a couple of times, including from scratch, and I'm sure I'm missing something simple.

I got this error when trying to start Alliance Auth with python manage.py syncdb

Image of code

Followed everything else to a T (I think) but not sure where I'm going wrong.

Any advice?
Adarnof
Kingsparrow Wormhole Division
Birds of Prey.
#157 - 2015-05-11 17:11:47 UTC
Ceafan Enderas wrote:
Ok, hate to be the guy what is stuck near the beginning, but have tried doing these processes a couple of times, including from scratch, and I'm sure I'm missing something simple.

I got this error when trying to start Alliance Auth with python manage.py syncdb

Image of code

Followed everything else to a T (I think) but not sure where I'm going wrong.

Any advice?


Have you tried sudo-ing that command? It's pretty finicky.
Ceafan Enderas
Iron Miners
#158 - 2015-05-11 18:34:48 UTC
Adarnof wrote:
Ceafan Enderas wrote:
Ok, hate to be the guy what is stuck near the beginning, but have tried doing these processes a couple of times, including from scratch, and I'm sure I'm missing something simple.

I got this error when trying to start Alliance Auth with python manage.py syncdb

Image of code

Followed everything else to a T (I think) but not sure where I'm going wrong.

Any advice?


Have you tried sudo-ing that command? It's pretty finicky.


I've tried the sudo in front, here's the screenshot
Adarnof
Kingsparrow Wormhole Division
Birds of Prey.
#159 - 2015-05-11 20:21:45 UTC
Ceafan Enderas wrote:
I've tried the sudo in front, here's the screenshot


Are you sure you ran the command
pip install -r requirements.txt
from that directory? It too may need sudo-ing to complete succesfully.
Tujiko Noriko
Dirt 'n' Glitter
Local Is Primary
#160 - 2015-05-11 23:10:46 UTC
Is it possible to use this for a corporation not in an alliance?