phpBB 3.2 EVE SSO / ESI extension [beta]

let me look … would be good to add a line saying we need to turn the selected option on eve-dev site … completely forgot about that … let me go do that and test it after.

ok so i can now select my toon on eve login but ones i click on Authorize it hangs then on phpbb i see :

Error Could not resolve host: login.eveonline.com

thats with all scopes selected but not public data.

i think i have a DNS prob with my VPS host just did a ping and its not working … sorry il test it ones my VPS is fixed

sorry about this.

@Snitch_Ashor ok got my host to fix there DNS now all is working fine :slight_smile: good work.

my i ask what we can do with the extra requested scopes ?

Is there a way to show the scopes info below the user name/profile ?

and for the new login button how/where can we skin it cant find a way to do it with css… where is it getting the code from? Might be best to add it in the authevesso > styles >all > template > css file so we can modify it for our theme?

see screenshot for my prob:

Will have a look at this plugin. Style modifications are done in styles/all/template/event/navbar_header_logged_out_content.html

Right now there is now plans to use them, also according to the developers agreement, you’re not allowed to use them for anything unless you tell your users.

so why did you add the scopes if theres no plans to use em ?

any luck in finding a way to fix the button?

Could you try to download this file: https://bitbucket.org/snitchashor/php-ext-authevesso/raw/fcd9a1df5a19a64d59d864838f7a131e016715a2/styles/all/template/event/overall_header_navbar_before.html and place it into ext/snitch/authevesso/styles/all/template/event ?

Btw. the selectable scopes are mainly there because people wanted them, nothing really planned yet but there’s lots of possibilities. It’s not like you aren’t allowed to use them, just not without people knowing.

that worked thx you so much :slight_smile:
Now only missing a way to show to terms of service and then its a go :grinning:

This is realy cool. But after updating to 1.2b im getting errors when logging in.

Strict Standards: Accessing static property snitch\authevesso\ESISSO::$userAgent as non static in /home4/bcz5fzhi/public_html/ext/snitch/authevesso/classes/class.esisso.php on line 38
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 1835: Cannot modify header information - headers already sent by (output started at [ROOT]/ext/snitch/authevesso/classes/class.esisso.php:38)

Thanks, should be fixed in this one: https://bitbucket.org/snitchashor/php-ext-authevesso/downloads/php-ext-authevesso-v1.2.1b.zip
1.2 contained another, more annoying bug, that would deactivate users based on scopes, if they are not ticked sequentially starting from the top, which is also fixed.

Cheers

Sweete. Thanks for quick response :slight_smile:

@Snitch_Ashor just wondering if there is a way to change the time of how long users stay logged in befor needing to relog with SSO?

Seems like for the last 3 days i did not need to relog… it should log me off after some time no?

no by default it doesn’t, it uses phpBBs built in “remember me” function which I think is about a year or so. In principle I could make this a config option and handle all the cookie stuff myself, but I think there might be a php setting for that. Will check.

EDIT. Found it! ACP -> Server Settings -> Security Settings: “Remember Me” login key expiration length (in days)

thx il give that a try :slight_smile: good work. : do you know if i can do 0.5 for 1/2 a day ?

i was also wondering if you would consider doing an eve SSO for WordPress this would be useful for many corps? seeing as your phpbb works well it would be nice having the same on WordPress.

So, I am trying to install it, but I cant seem to figure what the callback url would be. My site is http://5rc.totalh.net/ (subdomain)

Thanks for the help

So I think I succeeded, but I am getting the following

https://login.eveonline.com/oauth/authorize/?response_type=code&redirect_uri=http%3A%2F%2F5rc.totalh.net%2Fapp.php%2Fauthevesso%2Flogin%3Ftarget%3DaHR0cDovLzVyYy50b3RhbGgubmV0L2FkbS9pbmRleC5waHA%2Fc2lkPWRlNjE2MzgyYmM2NjJjYmEyNzUyMzcyMmRlMjBlNGFiJmFtcDtpPWFjcF9ib2FyZCZhbXA7bW9kZT1hdXRoJmFtcDt0ZXN0bG9naW49MQ%3D%3D&client_id=&scope=esi-corporations.read_corporation_membership.v1&state=SPht5c5dYO6HCAj73q65TqeRhTaMHCz4

By the way, this is what I currently have as the callback http://localhost/5rc.totalh.net/authevesso/login
I also tried http://5rc.totalh.net/app.php/authevesso/login but still not working

Any help would be appreciated

Thanks

The callback url including app.php is the correct one since you don’t seem to have url rewriting enabled in phpBB, However your client_id is missing from the gereated url. I assume that you are currently locked out of your board, to get the regular login back you need to access the database and look into the table phpbb_config and find the value for auth_method, that one should currently be evesso, switch it to db. Now you should be able to log in with your admin account you created during installation.
Please got to client communication → authentication and check that your client_id is entered there.

EDIT: That page should also contain the correct callback url in the description right above the client id

Thanks for the reply.
I am not locked out cause the above is only the result of the SSO login test.
What exactly is the App code? is that the secret key field from the dev site?
How about the user agent? Right now the user agent shows

phpbb_evesso http://5rc.totalh.net

Thank you for the help

Yes App Code is the Secret Key, user agent should be something that identifies your site but is not really important. After all four fields are filled, press he submit button, without switchuing the auth method yet. This will give you some confirmation and redirect you back to that page. Once returned press the Test SSO button.