Raised This Month: $ Target: $400
 0% 

[Sourcedonates] SteamID storage


Post New Thread Reply   
 
Thread Tools Display Modes
Arrow768
Veteran Member
Join Date: Nov 2011
Location: Austria
Old 11-11-2012 , 13:49   Re: [Sourcedonates] SteamID storage
Reply With Quote #11

Hi Mitchell, have I got you right: You want to use this idea to build a login via steamid ?

Why dont you use Steam as OpenID Provider and Login via OpenID ? - Thats not hard to make (we are using this to log into the admin menu of SD)
__________________

Last edited by Arrow768; 11-11-2012 at 13:50.
Arrow768 is offline
Mitchell
~lick~
Join Date: Mar 2010
Old 11-11-2012 , 13:59   Re: [Sourcedonates] SteamID storage
Reply With Quote #12

Quote:
Originally Posted by Arrow768 View Post
Hi Mitchell, have I got you right: You want to use this idea to build a login via steamid ?

Why dont you use Steam as OpenID Provider and Login via OpenID ? - Thats not hard to make (we are using this to log into the admin menu of SD)
I've been looking into it, but how are you keeping the client logged in (im not a professional at php )
Mitchell is offline
Arrow768
Veteran Member
Join Date: Nov 2011
Location: Austria
Old 11-11-2012 , 14:16   Re: [Sourcedonates] SteamID storage
Reply With Quote #13

As you might know, I am using the Code Igniter Framework for SD.

Openid works the following way (dont know if you know it):

The user selects the provider of his choice on your page.

He is redircted to the OID Provider and logs in there.

Then he is redirected back to your page with the details you have requested from the provider (if the provider supports it)

In SD I have continued this way:
I queried the admin db for the OpenID-Identity.

If the Identitiy is in the admin db, I create a session with the openid identitiy.

And on every page, I check if the openid identity is set in the session (the user cant create a session by himself, because they are encrypted and stored in the DB)
__________________
Arrow768 is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 13:36.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode