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.
 

phpBB 3.2 EVE SSO / ESI extension [beta]

Author
Milo Caman
Anshar Incorporated
#61 - 2017-04-11 10:03:16 UTC
The output of cron:list is:


Ready tasks:
============

* cron.task.core.tidy_cache
* cron.task.core.tidy_search
* cron.task.core.tidy_sessions
* cron.task.core.tidy_warnings

Not ready tasks:
================

* cron.task.core.prune_all_forums
* cron.task.core.prune_forum
* cron.task.core.prune_shadow_topics
* cron.task.core.prune_notifications
* cron.task.core.queue
* cron.task.core.tidy_database
* cron.task.core.tidy_plupload
* cron.task.text_reparser.pm_text
* cron.task.text_reparser.poll_option
* cron.task.text_reparser.poll_title
* cron.task.text_reparser.post_text
* cron.task.text_reparser.user_signature


After running cron:run, everything is moved to the 'Not ready' section. I assume that the groups.check task should be included in this list?
Morg Yard
Perkone
Caldari State
#62 - 2017-04-13 19:06:41 UTC
Perfect!
Snitch Ashor
Republic Military School
Minmatar Republic
#63 - 2017-04-13 20:45:02 UTC
Milo Caman wrote:
The output of cron:list is:


Ready tasks:
============

* cron.task.core.tidy_cache
* cron.task.core.tidy_search
* cron.task.core.tidy_sessions
* cron.task.core.tidy_warnings

Not ready tasks:
================

* cron.task.core.prune_all_forums
* cron.task.core.prune_forum
* cron.task.core.prune_shadow_topics
* cron.task.core.prune_notifications
* cron.task.core.queue
* cron.task.core.tidy_database
* cron.task.core.tidy_plupload
* cron.task.text_reparser.pm_text
* cron.task.text_reparser.poll_option
* cron.task.text_reparser.poll_title
* cron.task.text_reparser.post_text
* cron.task.text_reparser.user_signature


After running cron:run, everything is moved to the 'Not ready' section. I assume that the groups.check task should be included in this list?


Hmmm the cron job is missing completely. I'm kinda lost here. May I ask you to do a clean phpbb3.2 install in parralel and try the latest version? You still have some leftovers of the first version which may or may not be the issue
Morg Yard
Perkone
Caldari State
#64 - 2017-04-14 07:34:03 UTC  |  Edited by: Morg Yard
Question

All works fine, but we have multiple forum founders, and one of them cant login to forum with following error:

Quote:
Username already exists but is not linked to an EVE account


Character linking with already created account is enabled in ACP->Extention config

Please help us to resolve this issue.

What?
Snitch Ashor
Republic Military School
Minmatar Republic
#65 - 2017-04-14 10:35:37 UTC  |  Edited by: Snitch Ashor
Morg Yard wrote:
Question

All works fine, but we have multiple forum founders, and one of them cant login to forum with following error:

Quote:
Username already exists but is not linked to an EVE account


Character linking with already created account is enabled in ACP->Extention config

Please help us to resolve this issue.

What?



This is a security feature, linking existing accounts that have extended permissions (like admin or founder) is not working, because people might have user accounts like admin or administrator and there are actually eve characters named like this. The one exception is the admin user that you explicitly specify, so here's what you can do:

Change the admin user in the authentication settings to the one you want to link, heave him log in, repeat with the next founder.

Sorry I'm not gonna change this behaviour as this would introduce a huge security hole.
Norian Lonark
Center for Advanced Studies
Gallente Federation
#66 - 2017-04-25 21:35:11 UTC
Snitch Ashor wrote:
Syenna Celeste wrote:
Milo Caman wrote:
[
EDIT 3: Changing the URL by removing '%2Fapp.php' manually allows me to login with SSO enabled. This suggests that mod_rewrite might not be working properly? Also the 'Extensions' tab seems to be missing once I get back into ACP with everything enabled.


Fixed (we think).


Line 115 login.php.

Old: $url = $authurl."?response_type=code&redirect_uri=".rawurlencode(append_sid(generate_board_url().'/app.php/authevesso/login'))."&client_id=".$this->settings['clientid']."&scope=".im plode(' ',$scopes)."&state=".$state;


New: $url = $authurl."?response_type=code&redirect_uri=".rawurlencode(append_sid(generate_board_url().'/authevesso/login'))."&client_id=".$this->settings['clientid']."&scope=".im plode(' ',$scopes)."&state=".$state;


Thanks, did overlook that. So you can use that change for now, or change the callback at the eve dev page.

EDIT: Just pushed a fix here: https://bitbucket.org/snitchashor/php-ext-authevesso/downloads/php-ext-authevesso-v1.0.7a.zip

In order not to get locked out. If you had used version <= 1.0.5 and it worked, got to ACP -> General -> Server Confg. -> Server and domain and enable url rewriting.

After that continue normal:

disable the extension, update files, clear chache, reenable


Firstly thank you very much for working on this great mod. I just wanted to check with you but I downloaded the latest version but still have this issue of the rewrite not looking like its working. I corrected it by manually changing the callback on the development page and adding the /app.php/ to the beginning of the path after my forum url. Just wondered if you had any ideas?

Start wide, expand further, and never look back

Snitch Ashor
Republic Military School
Minmatar Republic
#67 - 2017-04-29 18:28:16 UTC
Norian Lonark wrote:
Snitch Ashor wrote:
Syenna Celeste wrote:
Milo Caman wrote:
[
EDIT 3: Changing the URL by removing '%2Fapp.php' manually allows me to login with SSO enabled. This suggests that mod_rewrite might not be working properly? Also the 'Extensions' tab seems to be missing once I get back into ACP with everything enabled.


Fixed (we think).


Line 115 login.php.

Old: $url = $authurl."?response_type=code&redirect_uri=".rawurlencode(append_sid(generate_board_url().'/app.php/authevesso/login'))."&client_id=".$this->settings['clientid']."&scope=".im plode(' ',$scopes)."&state=".$state;


New: $url = $authurl."?response_type=code&redirect_uri=".rawurlencode(append_sid(generate_board_url().'/authevesso/login'))."&client_id=".$this->settings['clientid']."&scope=".im plode(' ',$scopes)."&state=".$state;


Thanks, did overlook that. So you can use that change for now, or change the callback at the eve dev page.

EDIT: Just pushed a fix here: https://bitbucket.org/snitchashor/php-ext-authevesso/downloads/php-ext-authevesso-v1.0.7a.zip

In order not to get locked out. If you had used version <= 1.0.5 and it worked, got to ACP -> General -> Server Confg. -> Server and domain and enable url rewriting.

After that continue normal:

disable the extension, update files, clear chache, reenable


Firstly thank you very much for working on this great mod. I just wanted to check with you but I downloaded the latest version but still have this issue of the rewrite not looking like its working. I corrected it by manually changing the callback on the development page and adding the /app.php/ to the beginning of the path after my forum url. Just wondered if you had any ideas?


Just to make sure...

You enabled rewriting in the ACP right? And at the acp page where you enter your dev key, what callback url is given there?
Norian Lonark
Center for Advanced Studies
Gallente Federation
#68 - 2017-04-30 10:06:28 UTC
Snitch Ashor wrote:


Just to make sure...

You enabled rewriting in the ACP right? And at the acp page where you enter your dev key, what callback url is given there?


Hi Snitch,

I am in the process of reinstalling my development site so will provide feedback as soon as I give a second attempt. Smile

Many thanks,

Nori.

Start wide, expand further, and never look back

Avaya Blade
Perkone
Caldari State
#69 - 2017-05-01 21:01:39 UTC  |  Edited by: Avaya Blade
Snitch Ashor, thank's for your job.
Your module is very cool! ;)
But i have one problem. Can you help me?
When i activate authentification method as "evesso", i have problem:
after try login, eve online returns error:
[b]{"error":"invalid_scope","error_description":"The requested scopes either don't exist, or are not valid for this client"}[/b]

I think, that i'm doing something wrong.
Version mod: 1.1b
Version forum: phpBB 3.2
Version PHP: 7.0

Please, help me to start using your great tool )))

It's problem not actual )) I forgot set esi-corporations.read_corporation_membership.v1 for my Application in https://developers.eveonline.com/applications
Excuse me for bother )
Naella
Negative Density
#70 - 2017-05-08 16:43:23 UTC
Nice work!

Install more or less flawless.
However found when assigning (forum)admin roles upon opening the ACP users get the error
"The controller must return a response (false given)."

Switching to db authentication the ACP works just fine for these users.
Both accounts I tested with have been created with the authevesso proces.
As well as my admin/founder user which works just fine.

Any ideas how to solve this?
Naella
Negative Density
#71 - 2017-05-09 15:14:28 UTC
Naella wrote:
Nice work!

Install more or less flawless.
However found when assigning (forum)admin roles upon opening the ACP users get the error
"The controller must return a response (false given)."

Switching to db authentication the ACP works just fine for these users.
Both accounts I tested with have been created with the authevesso proces.
As well as my admin/founder user which works just fine.

Any ideas how to solve this?


Looks like it has to do with the additional required login when opening the ACP.
Somehow that is not passed on, except for the admin user.
Naella
Negative Density
#72 - 2017-05-09 20:37:40 UTC
Naella wrote:
Naella wrote:
Nice work!

Install more or less flawless.
However found when assigning (forum)admin roles upon opening the ACP users get the error
"The controller must return a response (false given)."

Switching to db authentication the ACP works just fine for these users.
Both accounts I tested with have been created with the authevesso proces.
As well as my admin/founder user which works just fine.

Any ideas how to solve this?


Looks like it has to do with the additional required login when opening the ACP.
Somehow that is not passed on, except for the admin user.


Has to do with the user needing to be in the Administrator group, more or less solved...
Would be nice to get around that without having to make designated users actual admins.
Norian Lonark
Center for Advanced Studies
Gallente Federation
#73 - 2017-05-12 09:03:26 UTC  |  Edited by: Norian Lonark
Hi Snitch,

is there anyway with this that you can use the phpbb authentication for other services. I really want to be able to use dokuwiki or mediawiki for our wiki solution. Currently we use temars plugin for SMF and its quite easy to then authenticate the wiki against the smf database so the user can use the same username and password.

With this plugin it seems that the user doesn't actually get a password or anything on the forum? or can they set one on their forum profile and the SSO will still work.

Basically I am just looking for a way that a user could authenticate against the forums and also use the forum account for the WIKI.

sorry if this is off topic I am not wanting to hijack or take time.. but am searching for a straight forward solution and I may be missing something simple and obvious due to my own limitations of understanding these technical things Lol

Start wide, expand further, and never look back

Dan Conia
Taggart Transdimensional
Virtue of Selfishness
#74 - 2017-05-15 01:52:39 UTC
Hello, all. I seem to be getting an extra ":80" in my callback URL. Note just after the ".com". This results in the "The callback URI doesn't match the value stored for this client" error.

https://login.eveonline.com/oauth/authorize/?response_type=code&redirect_uri=https%3A%2F%2Ftaggarttransdimensional.com%3A80%2Fphpbb%2Fapp.php%2Fauthevesso%2Flogin


I thought I would be clever and try adding it to the callback in the EVE Developers site, but then nothing else works.

If I try manually editing the browser call it works without an issue.

Does anybody know where this ":80" is coming from?

Great extension otherwise. I'm hoping I can contribute in some way (including the wiki question!).

Thanks.
Miela Morgan
Exverticus
#75 - 2017-05-20 07:10:24 UTC
3 Installs exactly how your first page states for install, 3 times board locked, 3 times changed to db in myphpadmin, and 3 times still locked return to fresh install.

Somenting is wrong, and the config settings has board_disabled as 0.

Snitch Ashor
Republic Military School
Minmatar Republic
#76 - 2017-05-23 08:19:44 UTC
Norian Lonark wrote:
Hi Snitch,

is there anyway with this that you can use the phpbb authentication for other services. I really want to be able to use dokuwiki or mediawiki for our wiki solution. Currently we use temars plugin for SMF and its quite easy to then authenticate the wiki against the smf database so the user can use the same username and password.

With this plugin it seems that the user doesn't actually get a password or anything on the forum? or can they set one on their forum profile and the SSO will still work.

Basically I am just looking for a way that a user could authenticate against the forums and also use the forum account for the WIKI.

sorry if this is off topic I am not wanting to hijack or take time.. but am searching for a straight forward solution and I may be missing something simple and obvious due to my own limitations of understanding these technical things Lol



in principle this can be done. I did a quick search and found this: https://www.mediawiki.org/wiki/Extension:PHPBB/Users_Integration

might work.

Cheers,
Snitch
Snitch Ashor
Republic Military School
Minmatar Republic
#77 - 2017-05-23 08:24:38 UTC
Dan Conia wrote:
Hello, all. I seem to be getting an extra ":80" in my callback URL. Note just after the ".com". This results in the "The callback URI doesn't match the value stored for this client" error.

https://login.eveonline.com/oauth/authorize/?response_type=code&redirect_uri=https%3A%2F%2Ftaggarttransdimensional.com%3A80%2Fphpbb%2Fapp.php%2Fauthevesso%2Flogin


I thought I would be clever and try adding it to the callback in the EVE Developers site, but then nothing else works.

If I try manually editing the browser call it works without an issue.

Does anybody know where this ":80" is coming from?

Great extension otherwise. I'm hoping I can contribute in some way (including the wiki question!).

Thanks.



Hi,

to be honest i am not sure how the port ended up there since it's a standard one. Are you using https over port 80?

Could you double check you got the following settings in you phpbb ACP under Server config/Server settings:

Server protocol: https://
Server port: 443

if this is already the case could you please try:

Force server URL settings: yes

Bests,
Snitch
Dan Conia
Taggart Transdimensional
Virtue of Selfishness
#78 - 2017-05-23 14:25:52 UTC
Snitch! That's it! Thank you for pointing out something so obvious that I kept overlooking it. hahahaha

Works like a charm, now!

Let me know if there's anything I can do to help with the project.
Norian Lonark
Center for Advanced Studies
Gallente Federation
#79 - 2017-05-24 09:39:58 UTC
Snitch Ashor wrote:


in principle this can be done. I did a quick search and found this: https://www.mediawiki.org/wiki/Extension:PHPBB/Users_Integration

might work.

Cheers,
Snitch


Hi Snitch,

thanks for the check I will have a go at installing it and see what happens when using it in combination with your mod.

Nori.

Start wide, expand further, and never look back

Milo Caman
Anshar Incorporated
#80 - 2017-05-25 12:23:53 UTC  |  Edited by: Milo Caman
Sort of dropped things for a while, but picking up trying to get things working again:

I've done a fresh install of the forum, installed everything successfully and enabled it, but I'm now running into the Invalid auth state error mentioned earlier in the thread. Any ideas? Server configuration is identical to before.

Also at which point in the install should the cronjob appear in the tasklist on phpbbcli? Still not seeing it, so migrations might still be having problems.

EDIT: This ONLY seems to happen when I am trying to log in with the admin character I created the board with. Other people auth in and get to the forum index just fine.

EDIT2: Logged in with a different browser and now it seems to be working. Possibly a cookies issues?

EDIT3: Logins definitely fixed, but still no sign of that cron job.