Pages: [1] :: one page |
|
Author |
Thread Statistics | Show CCP posts - 3 post(s) |
Talos Katuma
Helion Production Labs Independent Operators Consortium
14
|
Posted - 2014.10.07 21:45:00 -
[1] - Quote
I forked the HWI OAuth Bundle and started adding a new type for Eve SSO (currently configured for sisi). After some more testing I'll send a pull request towards HWI so that it hopefully gets integrated in the normal bundle.
For now if you want to play with it:
https://github.com/tarioch/HWIOAuthBundle |
Talos Katuma
Helion Production Labs Independent Operators Consortium
15
|
Posted - 2014.10.07 21:45:01 -
[2] - Quote
I forked the HWI OAuth Bundle and started adding a new type for Eve SSO (currently configured for sisi). After some more testing I'll send a pull request towards HWI so that it hopefully gets integrated in the normal bundle.
For now if you want to play with it:
https://github.com/tarioch/HWIOAuthBundle |
Pete Butcher
Kiss My Shiny Metal Ass
241
|
Posted - 2014.10.07 21:50:00 -
[3] - Quote
Lol, I was planning to do the exact same thing tomorrow. http://evernus.com - the ultimate multiplatform-áEVE trade tool http://tradeadvisor.evernus.com - find what to trade anywhere |
Pete Butcher
Kiss My Shiny Metal Ass
265
|
Posted - 2014.10.07 21:50:06 -
[4] - Quote
Lol, I was planning to do the exact same thing tomorrow.
http://evernus.com - the ultimate multiplatform EVE trade tool + nullsec Alliance Market tool + Trade Advisor
|
Mister Stark
Kindle Inc.
0
|
Posted - 2014.10.07 23:35:00 -
[5] - Quote
I setup a working version with a general resource owner. https://gist.github.com/smithmilner/871941b0a7918d752f4b |
Mister Stark
Kindle Inc.
0
|
Posted - 2014.10.07 23:35:36 -
[6] - Quote
I setup a working version with a general resource owner. https://gist.github.com/smithmilner/871941b0a7918d752f4b |
|
CCP FoxFour
C C P C C P Alliance
3546
|
Posted - 2014.10.08 09:46:00 -
[7] - Quote
Thats awesome work guys. Keep it up! CCP FoxFour // Game Designer // @CCP_FoxFour |
|
|
CCP FoxFour
C C P C C P Alliance
3796
|
Posted - 2014.10.08 09:46:33 -
[8] - Quote
Thats awesome work guys. Keep it up!
@CCP_FoxFour // Technical Designer // Team Size Matters
Third-party developer? Check out the official developers site for dev blogs, resources, and more.
|
|
Talos Katuma
Helion Production Labs Independent Operators Consortium
15
|
Posted - 2014.10.08 19:49:00 -
[9] - Quote
Pull request submitted, hopefully it get's merged soon (and hopefully productive sso goes live soon)
https://github.com/hwi/HWIOAuthBundle/pull/666 |
Talos Katuma
Helion Production Labs Independent Operators Consortium
15
|
Posted - 2014.10.08 19:49:27 -
[10] - Quote
Pull request submitted, hopefully it get's merged soon (and hopefully productive sso goes live soon)
https://github.com/hwi/HWIOAuthBundle/pull/666 |
|
Tahnil
Sirius Fleet AXIOS.
57
|
Posted - 2015.01.05 20:56:00 -
[11] - Quote
Hi. IGÇÿm trying to get this running. Unfortunately IGÇÿm missing some information. Installation went fine, I can start the auth process, but IGÇÿm getting an error from EVE SSO:
invalid_request The callback URI doesn't match the value stored for this client
And in fact the callback URI is wrong: https://login.eveonline.com/oauth/authorize?response_type=code&client_id=asdfasdfasdfasdfasdf&redirect_uri=http%3A%2F%2Faura.harad.de%2Fapp_dev.php%2Flogin%2Fcheck-eveonline
But I really donGÇÿt know where I should configure the callback URI in symfony / HWIOauth. Any ideas?
(PS: I scrambled the client id ;-)) |
Talos Katuma
Helion Production Labs Independent Operators Consortium
15
|
Posted - 2015.01.06 06:19:22 -
[12] - Quote
What did you use as callback url when registering on ccp sso site? |
Tahnil
Sirius Fleet AXIOS.
57
|
Posted - 2015.01.06 12:49:59 -
[13] - Quote
ItGÇÿs http://aura.harad.de, so the domain is right. But I guess itGÇÿs wrong nevertheless. My main problem is that I donGÇÿt fully understand the HWI OAuth bundle yet :-D |
|
CCP FoxFour
C C P C C P Alliance
3797
|
Posted - 2015.01.06 13:02:15 -
[14] - Quote
Tahnil wrote:ItGÇÿs http://aura.harad.de, so the domain is right. But I guess itGÇÿs wrong nevertheless. My main problem is that I donGÇÿt fully understand the HWI OAuth bundle yet :-D
The redirect URI being sent to the SSO is: http%3A%2F%2Faura.harad.de%2Fapp_dev.php%2Flogin%2Fcheck-eveonline
Which translates to: http://aura.harad.de/app_dev.php/login/check-eveonline
You have it set to: http://aura.harad.de
@CCP_FoxFour // Technical Designer // Team Size Matters
Third-party developer? Check out the official developers site for dev blogs, resources, and more.
|
|
Talos Katuma
Helion Production Labs Independent Operators Consortium
15
|
Posted - 2015.01.07 06:13:21 -
[15] - Quote
For production it should be
http://aura.harad.de/login/check-eveonline
Also if possible try to shift to https |
Tahnil
Sirius Fleet AXIOS.
57
|
Posted - 2015.01.07 23:14:43 -
[16] - Quote
Wow. That was simple :-D Thanks a lot.
But I'm still struggling with HWI OAuth and FOS User Bundle, as I'm trying to persist EVE SSO data in my user database table. I think there should be some mapping of SSO data to my user entity, but I didn't find out yet how to do this.
For a hobby dev like me without much auth know how this is pretty tricky. |
Talos Katuma
Helion Production Labs Independent Operators Consortium
16
|
Posted - 2015.01.08 19:06:18 -
[17] - Quote
Yeah it's unfortunately not trivial.
The trick is in the user provider. If you use FOS User Bundle, they have a FOSUserBundle if not, the also have an EntityUserProvider
Quickly using google, this looks like it explains it all http://inchoo.net/dev-talk/symfony-hwioauthbundle-and-google-sign-in/
|
Tahnil
Sirius Fleet AXIOS.
57
|
Posted - 2015.01.11 17:55:16 -
[18] - Quote
Wow. Thanks for the link. That seems to be so much easier than implementing FOS UserBundle.
However, now I managed to persist some EVE SSO data in the database: GÇô Character name GÇô Character ID
But I need the SSO access_token, and I donGÇÿt know how to grab it. How do I access specific response data? |
Talos Katuma
Helion Production Labs Independent Operators Consortium
17
|
Posted - 2015.01.11 18:11:37 -
[19] - Quote
I'm honestly not sure if that works right now or actually needs some adjustment on the hwi oauth/eve online resource provider side. When I (and others) wrote the resource provider, there was not yet anything beside the authentication part. |
Tahnil
Sirius Fleet AXIOS.
57
|
Posted - 2015.01.11 19:11:21 -
[20] - Quote
OK, got it.
I think in this case it would be good to extend the EVE Online resource provider for HWI OAuth in the near future. |
|
Steve Ronuken
Fuzzwork Enterprises Vote Steve Ronuken for CSM
4667
|
Posted - 2015.01.11 19:19:54 -
[21] - Quote
if you want to get https, without paying for a certificate, take a look at https://www.cloudflare.com/ which has a free option to get it
Woo! CSM 9!
Fuzzwork Enterprises
Twitter: @fuzzysteve on Twitter
|
Talos Katuma
Helion Production Labs Independent Operators Consortium
17
|
Posted - 2015.01.11 19:49:01 -
[22] - Quote
Another one is https://www.startssl.com/ |
Shaylas
State War Academy Caldari State
12
|
Posted - 2015.01.11 21:02:21 -
[23] - Quote
Steve Ronuken wrote:if you want to get https, without paying for a certificate, take a look at https://www.cloudflare.com/ which has a free option to get it The options that CF offers is more a Fake-SSL. Only a part of the connection is secured. |
Steve Ronuken
Fuzzwork Enterprises Vote Steve Ronuken for CSM
4667
|
Posted - 2015.01.11 22:01:04 -
[24] - Quote
Shaylas wrote:Steve Ronuken wrote:if you want to get https, without paying for a certificate, take a look at https://www.cloudflare.com/ which has a free option to get it The options that CF offers is more a Fake-SSL. Only a part of the connection is secured.
Depends which option you use. You can use the full ssl option, which encrypts the connection between you and cloudflare. (it does mean cloudflare can see everything in passing.)
Even with the flexible ssl option, it's covering the most dangerous stage (from the client to the net)
Woo! CSM 9!
Fuzzwork Enterprises
Twitter: @fuzzysteve on Twitter
|
Tahnil
Sirius Fleet AXIOS.
57
|
Posted - 2015.01.11 23:09:55 -
[25] - Quote
Regarding the HWI OAuth Bundle and the EVE Online resource provider: when I authenticate with my Tahnil character (which works fine), I can see in the Symfony profiler unter Request > Session Attributes that the EVE SSO data are in a session attribute called _security_main.
There is the access token, token type, expires in, and the refresh token. So everything is there. Only question remains: how to access this data. Any ideas anybody? My googling has been unsuccessful so far. I only found out how to get the other Session attributes such as id (of user in my user table), nickname (Tahnil), and realname (Tahnil, too). |
Will Morrisson
blabla... A.A.A.A.A
2
|
Posted - 2015.01.12 23:33:24 -
[26] - Quote
Tahnil wrote: There is the access token, token type, expires in, and the refresh token. So everything is there. Only question remains: how to access this data. Any ideas anybody? My googling has been unsuccessful so far. I only found out how to get the other Session attributes such as id (of user in my user table), nickname (Tahnil), and realname (Tahnil, too).
You surely defined a custom User Provider with a method named -½ loadUserByOAuthUserResponse -+. This method receive an object implementing ResponseInterface which has a method getResponse returning an array with all data given by Eve SSO response. |
Tahnil
Sirius Fleet AXIOS.
57
|
Posted - 2015.01.13 20:53:13 -
[27] - Quote
Thanks for your response. You are right. But I think itGÇÿs not an array. Instead I think it might be some serialized or deserialized "object" (or whatever). ItGÇÿs not json, itGÇÿs not a php array. It looks like this:
C:68:"HWI\Bundle\OAuthBundle\Security\Core\Authentication\Token\OAuthToken":599:{a:7:{i:0;s:87:"pqGǪsome_tokenGǪ3g2";i:1;a:4:{s:12:"access_token";s:87:"pqGǪsome_tokenGǪ3g2";s:10:"token_type";s:6:"Bearer";s:10:"expires_in";i:300;s:13:"refresh_token";N;}i:2;N;i:3;i:300;i:4;i:1421180242;i:5;s:10:"eve_online";i:6;s:223:"a:4:{i:0;C:32:"Some\EverelatedBundle\Entity\User":12:{a:1:{i:0;N;}}i:1;b:0;i:2;a:1:{i:0;O:41:"Symfony\Component\Security\Core\Role\Role":1:{s:47:"Symfony\Component\Security\Core\Role\Rolerole";s:9:"ROLE_USER";}}i:3;a:0:{}}";}}
Never seen this data format before. IGÇÿm getting the impression that Symfony might be a little too sophisticated for meGǪ This is frikkinGÇÿ hard |
Tahnil
Sirius Fleet AXIOS.
57
|
Posted - 2015.01.13 21:17:58 -
[28] - Quote
OMG. I think I found the information that I was missing.
Quote:What is the importance of serialize and unserialize?
The Serializable interface and its serialize and unserialize methods have been added to allow the User class to be serialized to the session. This may or may not be needed depending on your setup, but it's probably a good idea. The id is the most important value that needs to be serialized because the refreshUser() method reloads the user on each request by using the id. In practice, this means that the User object is reloaded from the database on each request using the id from the serialized object. This makes sure all of the User's data is fresh. http://symfony.com/doc/current/cookbook/security/entity_provider.html |
|
|
|
Pages: [1] :: one page |
First page | Previous page | Next page | Last page |