+chorpeac MVC Posted April 12, 2006 MVC Share Posted April 12, 2006 What are the possibilities for the Group section again? Link to comment https://www.neowin.net/forum/topic/211388-neowin-external-login-tool/page/7/#findComment-587410450 Share on other sites More sharing options...
nerokill Posted July 9, 2006 Share Posted July 9, 2006 Could you add daylight savings setting too. btw c# example public partial class Login : System.Web.UI.Page { private String NeowinLoginPage = "https://www.neowin.net/login/?url={0}"; private String NeowinTicketPage = "https://www.neowin.net/login/checkticket.php?ticket={0}"; protected void Page_Load(object sender, EventArgs e) { if (Request.QueryString.Get("ticket") != null) { System.Net.HttpWebRequest neowinRequest = (System.Net.HttpWebRequest)System.Net.WebRequest.Create(string.Format(NeowinTicketPage, Request.QueryString.Get("ticket"))); System.Net.HttpWebResponse neowinResponse = (System.Net.HttpWebResponse)neowinRequest.GetResponse(); System.IO.Stream receiveStream = neowinResponse.GetResponseStream(); System.Text.Encoding encode = System.Text.Encoding.GetEncoding("utf-8"); System.IO.StreamReader readStream = new System.IO.StreamReader(receiveStream, encode); String SiteResponse = readStream.ReadToEnd(); readStream.Close(); neowinResponse.Close(); String[] NeowinData = SiteResponse.Split(); if (NeowinData[0] == "no") { Response.Write("Sorry, you could not be logged in, check your username and password."); } else { //Succesfully logged in. Response.Write("You've been succesfully logged in..\n"); Response.Write("<br /><br />\n<strong>Username:</strong> " + NeowinData[1] + "<br />\n"); Response.Write("<strong>E-mail:</strong> " + NeowinData[2] + "<br />\n"); Response.Write("<strong>Group:</strong> " + NeowinData[5] + "<br />\n"); Response.Write("<strong>Member ID:</strong> " + NeowinData[4] + "<br />\n"); Response.Write("<strong>Time Offset:</strong> " + DateTime.UtcNow.AddHours(Convert.ToDouble(NeowinData[3])).ToLongTimeString()); } } else { Response.Redirect(String.Format(NeowinLoginPage, Request.Url.AbsoluteUri)); } } } Link to comment https://www.neowin.net/forum/topic/211388-neowin-external-login-tool/page/7/#findComment-587685730 Share on other sites More sharing options...
+M2Ys4U Subscriber¹ Posted July 27, 2007 Subscriber¹ Share Posted July 27, 2007 Is it possible you can edit this so it doesn't strip out the URL encoded querystring? When you pass a url that has index.php?page=whatever, the ?page=whatever gets stripped and that makes my program stop working. There's no way I can get around this as far as I know. Link to comment https://www.neowin.net/forum/topic/211388-neowin-external-login-tool/page/7/#findComment-588734566 Share on other sites More sharing options...
+M2Ys4U Subscriber¹ Posted July 30, 2007 Subscriber¹ Share Posted July 30, 2007 bump, any chance of fixing? Link to comment https://www.neowin.net/forum/topic/211388-neowin-external-login-tool/page/7/#findComment-588740117 Share on other sites More sharing options...
+M2Ys4U Subscriber¹ Posted August 9, 2007 Subscriber¹ Share Posted August 9, 2007 Problem solved. Thanks DaveLegg :) Link to comment https://www.neowin.net/forum/topic/211388-neowin-external-login-tool/page/7/#findComment-588767356 Share on other sites More sharing options...
Stephen Veteran Posted April 21, 2008 Veteran Share Posted April 21, 2008 (edited) anychance of you guys telling us what this will output for the groups? ie what different groups will output via the group variable thanks ste Edited April 21, 2008 by ste Link to comment https://www.neowin.net/forum/topic/211388-neowin-external-login-tool/page/7/#findComment-589346839 Share on other sites More sharing options...
Antaris Veteran Posted April 21, 2008 Veteran Share Posted April 21, 2008 Done a HttpModule for ASP.NET: Neowin.ExternalUser.zip Make sure you do the module and configuration plumbing in your web.config: <?xml version="1.0"?> <!-- Note: As an alternative to hand editing this file you can use the web admin tool to configure settings for your application. Use the Website->Asp.Net Configuration option in Visual Studio. A full list of settings and comments can be found in machine.config.comments usually located in \Windows\Microsoft.Net\Framework\v2.x\Config --> <configuration> <configSections> <section name="neowin" type="Neowin.ExternalUser.NeowinExternalLoginConfigurationSection, Neowin.ExternalUser"/> </configSections> <neowin myUrl="{your url here}"/> <appSettings/> <connectionStrings/> <system.web> <!-- Set compilation debug="true" to insert debugging symbols into the compiled page. Because this affects performance, set this value to true only during development. --> <compilation debug="true"/> <!-- The <authentication> section enables configuration of the security authentication mode used by ASP.NET to identify an incoming user. --> <authentication mode="Windows"/> <!-- The <customErrors> section enables configuration of what to do if/when an unhandled error occurs during the execution of a request. Specifically, it enables developers to configure html error pages to be displayed in place of a error stack trace. <customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm"> <error statusCode="403" redirect="NoAccess.htm" /> <error statusCode="404" redirect="FileNotFound.htm" /> </customErrors> --> <httpModules> <add name="NeowinLoginModule" type="Neowin.ExternalUser.NeowinLoginModule, Neowin.ExternalUser"/> </httpModules> </system.web> </configuration> Link to comment https://www.neowin.net/forum/topic/211388-neowin-external-login-tool/page/7/#findComment-589347094 Share on other sites More sharing options...
Rob Veteran Posted April 21, 2008 Veteran Share Posted April 21, 2008 Nice one Antaris! Link to comment https://www.neowin.net/forum/topic/211388-neowin-external-login-tool/page/7/#findComment-589347543 Share on other sites More sharing options...
Simon Veteran Posted February 1, 2009 Veteran Share Posted February 1, 2009 We've made some changes to the script. The biggest thing is that it now uses the Finity style, and offers more details. Generally, it feels better. The other thing is for developers of Neowin-based services. You can now pass &img=http://mydomain.com/neowin-login.png on the login URL, and that image will appear at the top left of the site, like so: https://www.neowin.net/login/?img=http://ww...ser%2Fticket%2F It offers that extra bit of branding and clarity to the user. The image you use should be 48px high, and only as wide as you need. There should be 2 or 3 pixels of padding around the image, so really the height is about 42px. Make sure it is a transparent PNG, so our background can be seen through it. Remember, you're branding Neowin, it better look nice :p Link to comment https://www.neowin.net/forum/topic/211388-neowin-external-login-tool/page/7/#findComment-590513556 Share on other sites More sharing options...
Andrew Lyle Global Moderator Posted February 1, 2009 Global Moderator Share Posted February 1, 2009 Very nice simon! Link to comment https://www.neowin.net/forum/topic/211388-neowin-external-login-tool/page/7/#findComment-590513740 Share on other sites More sharing options...
+Gary7 Subscriber² Posted February 1, 2009 Subscriber² Share Posted February 1, 2009 What and how is this used? Link to comment https://www.neowin.net/forum/topic/211388-neowin-external-login-tool/page/7/#findComment-590513790 Share on other sites More sharing options...
Simon Veteran Posted February 1, 2009 Veteran Share Posted February 1, 2009 It's used for Neorequest, Shift Linux, and Ste's IRC logs. It just lets Neowin users log into an external site, without giving away their username and password, while the external site knows for certain that they are legitimate members. Link to comment https://www.neowin.net/forum/topic/211388-neowin-external-login-tool/page/7/#findComment-590513824 Share on other sites More sharing options...
Stephen Veteran Posted February 1, 2009 Veteran Share Posted February 1, 2009 It's used for Neorequest, Shift Linux, and Ste's IRC logs. It just lets Neowin users log into an external site, without giving away their username and password, while the external site knows for certain that they are legitimate members. also for Quotes, and the Neowin Gamers Index (going to be doing some work on this at sometime or other). Link to comment https://www.neowin.net/forum/topic/211388-neowin-external-login-tool/page/7/#findComment-590513850 Share on other sites More sharing options...
+Gary7 Subscriber² Posted February 1, 2009 Subscriber² Share Posted February 1, 2009 Thanks Guys :) Link to comment https://www.neowin.net/forum/topic/211388-neowin-external-login-tool/page/7/#findComment-590513872 Share on other sites More sharing options...
JMann Veteran Posted February 2, 2009 Veteran Share Posted February 2, 2009 It's used for Neorequest, Shift Linux, and Ste's IRC logs. It just lets Neowin users log into an external site, without giving away their username and password, while the external site knows for certain that they are legitimate members. Good work Simon, hopefully we will be putting out a sweet new version of NeoRequest soon so I will whip up a decent logo for it. Thanks Link to comment https://www.neowin.net/forum/topic/211388-neowin-external-login-tool/page/7/#findComment-590519446 Share on other sites More sharing options...
Antaris Veteran Posted February 16, 2009 Veteran Share Posted February 16, 2009 Updated ASP.NET library: https://www.neowin.net/forum/index.php?showtopic=736472 Link to comment https://www.neowin.net/forum/topic/211388-neowin-external-login-tool/page/7/#findComment-590585620 Share on other sites More sharing options...
ReMiXeD greg Posted July 25, 2011 Share Posted July 25, 2011 Very interesting. Link to comment https://www.neowin.net/forum/topic/211388-neowin-external-login-tool/page/7/#findComment-594188992 Share on other sites More sharing options...
Recommended Posts