Register for your free account! | Forgot your password?

Go Back   elitepvpers > Other Online Games > Browsergames > DarkOrbit
You last visited: Today at 05:55

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



New OAuth based DarkOrbit login system

Discussion on New OAuth based DarkOrbit login system within the DarkOrbit forum part of the Browsergames category.

Closed Thread
 
Old   #1
 
»jD«'s Avatar
 
elite*gold: 237
Join Date: Sep 2010
Posts: 1,152
Received Thanks: 4,910
New OAuth based DarkOrbit login system

Bigpoint just pushed a change to the way they handle logins, so I decided to quickly put together some code that handles their new OAuth login system.

Source Code:

Code is released under :

-jD
»jD« is offline  
Thanks
25 Users
Old 08/08/2013, 10:10   #2
 
megasuperleader's Avatar
 
elite*gold: 0
Join Date: Oct 2012
Posts: 266
Received Thanks: 29
Compliments for your server jD.

Keep it up!
megasuperleader is offline  
Old 08/08/2013, 11:41   #3
 
»jD«'s Avatar
 
elite*gold: 237
Join Date: Sep 2010
Posts: 1,152
Received Thanks: 4,910
I committed some changes to generate a server change URL. See commit

-jD
»jD« is offline  
Thanks
2 Users
Old 08/09/2013, 09:30   #4
 
GnomeProgramming's Avatar
 
elite*gold: 30
Join Date: Jan 2013
Posts: 209
Received Thanks: 463
Nice and clean code
GnomeProgramming is offline  
Old 08/17/2013, 00:27   #5

 
elite*gold: 556
Join Date: Aug 2006
Posts: 502
Received Thanks: 404
hey jD

please fix this line:

Quote:
string changeServerURL = Regex.Match(serverInstancesHTML, "target=\"http://" + serverCode + ".darkorbit.bigpoint.com/(GameAPI.php\\?req=.+)?\"").Groups[1].Value;
to

Quote:
string changeServerURL = Regex.Match(serverInstancesHTML, "target=\"http://" + serverCode + ".darkorbit.bigpoint.com/(GameAPI.php\\?req=.+)?\" onclick").Groups[1].Value;
thx
uragan is offline  
Old 08/17/2013, 01:43   #6
 
»jD«'s Avatar
 
elite*gold: 237
Join Date: Sep 2010
Posts: 1,152
Received Thanks: 4,910
Why? It Doesn't change anything and ruins the capture groups under Mono.

-jD
»jD« is offline  
Old 08/17/2013, 06:01   #7
 
elite*gold: 0
Join Date: Jul 2013
Posts: 46
Received Thanks: 11
but you dont say **** how they banning bots? thats weird....
™Skyz™ is offline  
Old 08/17/2013, 06:34   #8
 
»jD«'s Avatar
 
elite*gold: 237
Join Date: Sep 2010
Posts: 1,152
Received Thanks: 4,910
Quote:
Originally Posted by ™Skyz™ View Post
but you dont say **** how they banning bots? thats weird....
What?

-jD
»jD« is offline  
Old 08/17/2013, 12:34   #9

 
elite*gold: 556
Join Date: Aug 2006
Posts: 502
Received Thanks: 404
you have to check the output of Regex.Match()
uragan is offline  
Old 08/17/2013, 13:22   #10
 
»jD«'s Avatar
 
elite*gold: 237
Join Date: Sep 2010
Posts: 1,152
Received Thanks: 4,910
For me it matches perfectly!

-jD
»jD« is offline  
Old 08/17/2013, 22:41   #11

 
elite*gold: 556
Join Date: Aug 2006
Posts: 502
Received Thanks: 404
Quote:

"GameAPI.php?req=xxxxxxxxx" onclick="InstanceSelection.clickedIni(this);"
this one i got with your Regex.Match()
uragan is offline  
Old 08/18/2013, 02:25   #12
 
»jD«'s Avatar
 
elite*gold: 237
Join Date: Sep 2010
Posts: 1,152
Received Thanks: 4,910
You can't, there's a non-greedy capture group before it...

-jD
»jD« is offline  
Old 08/18/2013, 02:31   #13
 
elite*gold: 0
Join Date: Oct 2011
Posts: 28
Received Thanks: 1
Quote:
Originally Posted by »jD« View Post
You can't, there's a non-greedy capture group before it...

-jD
When the server onlinge again JD. THX
YOSTA is offline  
Old 08/18/2013, 02:32   #14

 
elite*gold: 556
Join Date: Aug 2006
Posts: 502
Received Thanks: 404
dunno why,

Visual Studio 11.0.5x
Framework 4.5.5x

dont have a lot exp on c#

but
The important thing is that "HtmlEntity.DeEntitize" works fine
uragan is offline  
Old 08/18/2013, 02:56   #15
 
AlanSouza's Avatar
 
elite*gold: 0
Join Date: Jan 2012
Posts: 100
Received Thanks: 11
thanks Jd. :]
AlanSouza is offline  
Closed Thread


Similar Threads Similar Threads
[NEW]KD-BOT ON NEW JOB SYSTEM V-SRO BASED
04/30/2014 - SRO PServer Guides & Releases - 11 Replies
Hi everyone. I will show you how to use KD - Bot v-Sro with NEW JOB SYSTEM . ATTENTION: This guide created by based '' infintyroad '' private server. So IP, Gateway and Agent server can be different for your own private server!
[VB.NET] License system based on unique Machine ID
10/17/2011 - .NET Languages - 3 Replies
Hello, I've been searching a lot.. And I am aware of some licensing systems, out of which I find the best one which is based on unique Machine ID. I've googled and came up with tutorials to get the unique ID.. But , however, I'm unable to find a way to use it to activate licenses. For example : I put up a program for download. Only users whom I activated can use that application. And this activation is done on that machine ID. If anyone would be kind enough to help me out, I would...



All times are GMT +1. The time now is 05:55.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.