ManiaConnect: unified authentication system

Maniaplanet public API, ManiaConnect system and the open source PHP SDK.

Moderator: NADEO

konte
Posts: 236
Joined: 15 Jun 2010, 12:36
Location: Germany

Re: ManiaConnect: unified authentication system

Post by konte »

Am I right with the assumption that the authentication status is saved with the standard PHP session function, so, with a cookie called "PHPSESSID"? If so, that's not a good name for a cookie^^ I would like to see a ManiaConnect-related cookie name, so that the user can use PHPSESSID himself.

And, if I once have confirmed that I accept to send my data, I'm not asked later anymore, am I? (so, I still have to connect, but there's no confirmation). How about two buttons, one for a permanent login, one for a one-time one?
User avatar
fastforza
Posts: 850
Joined: 15 Jun 2010, 11:19
Contact:

Re: ManiaConnect: unified authentication system

Post by fastforza »

How does one go about using ManiaConnect in Manialinks? I assume it works the same. However, for the redirection URI, do we specify the Manialink name or a URI to that Manialink?
Mania Exchange - Share your maps!

ASUS Maximus IV GENE Z / i7 2600K 3.40Ghz QC / 16GB G.Skill Ripjaws DDR3 / GTX 560 Ti

Need technical help for ManiaPlanet? Click here. :)
User avatar
gouxim
Nadeo
Nadeo
Posts: 1186
Joined: 14 Jun 2010, 17:20

Re: ManiaConnect: unified authentication system

Post by gouxim »

konte wrote:Am I right with the assumption that the authentication status is saved with the standard PHP session function, so, with a cookie called "PHPSESSID"?
The authentication status is indeed saved by default in the PHP session. However you're not right about the name of the cookies. It all happens here: http://code.google.com/p/maniaplanet-ws ... ion.php#34

If the session is not already started, it starts it using session_start(); But you can obivously call session_name() (http://php.net/manual/en/function.session-name.php) before to change the PHP session cookie name. That's what we do in ManiaLib for example.
Please do not PM for support. Instead, create a thread so that everyone can contribute or benefit from the answer! 8-)
User avatar
gouxim
Nadeo
Nadeo
Posts: 1186
Joined: 14 Jun 2010, 17:20

Re: ManiaConnect: unified authentication system

Post by gouxim »

fastforza wrote:How does one go about using ManiaConnect in Manialinks? I assume it works the same. However, for the redirection URI, do we specify the Manialink name or a URI to that Manialink?
It is indeed exactly the same, so you need to use the URI and not the short manialink.
Please do not PM for support. Instead, create a thread so that everyone can contribute or benefit from the answer! 8-)
User avatar
fastforza
Posts: 850
Joined: 15 Jun 2010, 11:19
Contact:

Re: ManiaConnect: unified authentication system

Post by fastforza »

Thought so. Thanks for the clarification. :)
Mania Exchange - Share your maps!

ASUS Maximus IV GENE Z / i7 2600K 3.40Ghz QC / 16GB G.Skill Ripjaws DDR3 / GTX 560 Ti

Need technical help for ManiaPlanet? Click here. :)
User avatar
tatar
Posts: 17
Joined: 09 Mar 2012, 16:16

Re: ManiaConnect: unified authentication system

Post by tatar »

Hi,
Is it possible to implement a "remember my credentials" with the ManiaConnect?

I use it to authenticate players and they ask for this feature. I don't know where to begin :roll: I don't quite get how the ManiaConnect works.
Thanks.
Post Reply

Return to “Maniaplanet Web Services”

Who is online

Users browsing this forum: No registered users and 1 guest