| |
| | |

CodersClub

 Forgot password?
 Register
Search
View: 4416|Reply: 2
Collapse the left

Discuz authentication

[Copy link]

 Canada

Post time: 2013-03-26 20:25
| Show all posts |Read mode
Hi,

I'm looking how authentication method is done for Discuz 2.5 so I can add code to handle identical authentication for both Discuz and a multiplayer texas holdem game.

Basically, what I want to do is user creates an account on a discuz forum then he uses the same credentials (user/password) to access to the game. The game pulls out all informations he/she configures on the site like avatar, points/cash to display in game session.

Also does the authentication work also for other versions?

Any help is appreciated!

Thx!

HD

 Russia

Post time: 2013-03-26 20:31
| Show all posts
Discuz (and some other applications) uses the UCenter API for authenticate users.
If you use the same API in your own application, so your APP will use the same credentials (and other user parameters like avatar, credits, friend/black list, and private messages).

UCenter authentication works ok starting for all the versions.

Just read the UCenter API and try to use it.
It is here:
http://code.google.com/p/discuzx ... ter1.6.0%2Fadvanced

 Canada

 Author| Post time: 2013-03-26 22:07
| Show all posts
Thx for quick reply. I went and took a look of most the files. It does not tell me much about hashing algorithm I need to code in different language than php.

Googling leads me to the correct hashing password formula. Gave it a try, appears the password is hashed correctly
and matched with the one on forum which is sufficient for the work I need to allow Discuz 2.5 community members to play games together.
You have to log in before you can reply Login | Register

Points Rules

Archive|Mobile|Dark room|CodersClub

Top.Mail.Ru
Top.Mail.Ru

2024-11-23 03:23 GMT+3 , Processed in 0.032208 sec., 8 queries .

Powered by Discuz! X3.4 Release 20230520

© 2001-2024 Discuz! Team.

MultiLingual version, Rev. 4301, © codersclub.org

Quick Reply To Top Return to the list