Recommended Posts

Neowin coders / members / project leaders,

We've developed a system to allow external projects in-directly linked to neowin to authenticate users in a secure manner. Based around a ticket system, you can now check if a user says who they are. Below you can find demo code, and a more advanced explanation of how the system works. If you have any feedback on the system, please post below. The data we return to sites (username, user group, email) is subject to change. Equally, the use of this system is conditional on the pledge that you agree not abuse the information given to you. The system was designed and built by our very own Timdorr (you can thank him via a PM :) ).

Explanation of the system

An effective system for validating members can be done via tickets. Essentially, it's a 3 stage process.

1. You require a visiting user to prove they are who they say they are (with relation to their neowin membership). You forward them to us (www.neowin.net/login/?url=yoururl.com). Here, they enter username and password.

2. If they enter the correct info, we'll return the user to your site with a ticket. With this ticket, you can now access neowin asking for validation (see example code below). This ticket is only valid for 60 seconds (security measure).

3. If the ticket is invalid (for whatever reason) we'll return the data "no". If it is valid, we'll return the following data : username, email address, group information (e.g. banned, normal, moderator).

From this, you can then proceed with whatever activites the user wants to do on your site, safe in the knowledge that they are who they say they are.

Example Code

<?php
//Neowin Login Tool example code, coded by Sietse and offered freely for use by Neowin.net
// Send the user to login if no ticket is found
// ----------------------------------------------
//enter your url below - the location of this script - e.g. www.mysite.com/
$myurl = 'http://www.sietse.nu/neowin/';

if(empty($_GET['ticket']))
{
 ? ?header('Location: https://www.neowin.net/login/?url=' . $myurl);
}
else
{
	// Check ticket
	// -----------------
	$info = ?explode("\n", file_get_contents('https://www.neowin.net/login/checkticket.php?ticket=' . $_GET['ticket']));

	if($info[0] == "no")
	{
 ?echo "Sorry, you could not be logged in, check your username and password.";
	}
	else
	{
 ?// Succesfully logged in, display the given content
 ?// -------------------------------------------------
 ?echo "You've been succesfully logged in..\n
 ? ?<br /><br />\n<strong>Username:</strong> " . $info[1] . "<br />\n
 ? ?<strong>E-mail:</strong> " . $info[2] . "<br />\n
 ? ?<strong>Group:</strong> " . $info[5] . "<br />\n
 ? ?<strong>Member ID:</strong> " . $info[4] . "<br />\n
 ? ?<strong>Time Offset:</strong> " . $info[3];
	}
}

?>

An example of the system can be found here : here

Please feel free to leave feedback below, as well as links to sites that you've impUPDATE FEB 1, 2009: FEB 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 :ptter look nice :p

Link to comment
https://www.neowin.net/forum/topic/211388-neowin-external-login-tool/
Share on other sites

Ok this should work. Good job

One question/suggestion...

Could you return the Neowin MemberID also, so on our apps we can link to this:

https://www.neowin.net/forum/index.php?showuser=MemberID

to display the Neowin Profile page for the user?

Lots of users were asking for the ability to look at another Users Neowin profile from within NeoRequest.

This would definitely help out!

Ok, well others can speak up when they use it, but I will plan so that as long as you append to the end, it should be ok.

But if you change the label in the front...well then I can see a break. :)

Thanks for helping us with this feature!

one more change: I realize now that people, such as Mr Magoo, have spaces in their names. I've switched it to newline deliminated, so that people with weird characters don't cause a problem :)

Nothing about people who are weird characters though, they'll still cause problems. :)

Awesomeness. I'll have to give this a shot for Neomap.

Cool, I was trying to forward this link to you, but Neowin was acting weird, and I didn't get around to it. I thought you might be able to use this too!

Cool, I was trying to forward this link to you, but Neowin was acting weird, and I didn't get around to it. I thought you might be able to use this too!

Well it wasn't exactly what I was looking for, but I'm sure I could modify it for my needs :)

Timdorr, would I be able to get the complete user group list?

OK timdorr...

I'm not sure if anyone else is using this yet or not, but maybe something we could put in here to make things a little bit easier...

Could we put begin and end character strings to signify begin of data and end of data. I'm just trying to recommend a standardized mechanism. It's currently possible to get the data, but it would be really easy if we can look for certain characters or delimiters so to speak.

Hmm...Just something that could/would be consistent.

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Posts

    • Win11Debloat 06.11.2026 by Razvan Serea Win11Debloat is a lightweight, easy to use PowerShell script that allows you to quickly declutter and customize your Windows experience. It can remove pre-installed bloatware apps, disable telemetry, remove intrusive interface elements and much more. The script also includes many features that system administrators and power users will enjoy. Such as a powerful command-line interface, support for Windows Audit mode and the option to make changes to other Windows users. All changes made by Win11Debloat can be easily reversed, and most removed apps can be restored via the Microsoft Store. A full guide on how to undo the changes is available here. Win11Debloat features: Below is an overview of the key features and functionality offered by Win11Debloat. Please refer to the wiki for more information about the default settings preset. Remove a wide variety of preinstalled apps. Click here for more info. Disable telemetry, diagnostic data, activity history, app-launch tracking & targeted ads. Disable tips, tricks, suggestions & ads across Windows. Disable Windows location services & app location access. Disable Find My Device location tracking. Disable 'Windows Spotlight' and tips & tricks on the lock screen. Disable 'Windows Spotlight' desktop background option. Disable ads, suggestions and the MSN news feed in Microsoft Edge. Hide Microsoft 365 ads on the Settings 'Home' page, or hide the 'Home' page entirely. Disable & remove Microsoft Copilot. Disable Windows Recall. Disable Click to Do, AI text & image analysis tool. Prevent AI service (WSAIFabricSvc) from starting automatically. Disable AI Features in Edge. Disable AI Features in Paint. Disable AI Features in Notepad. Disable the Drag Tray for sharing & moving files. Restore the old Windows 10 style context menu. Turn off Enhance Pointer Precision, also known as mouse acceleration. Disable the Sticky Keys keyboard shortcut. Disable Storage Sense automatic disk cleanup. Disable fast start-up to ensure a full shutdown. ...and more. Once you’ve downloaded the Win11Debloat file (Get.ps1), just follow these quick steps: Locate the Get.ps1 script file. Right-click the file and select Run with PowerShell from the context menu. If prompted by User Account Control (UAC), select Yes to grant the script the necessary administrative permissions. Win11Debloat 06.11.2026 fixes: Fix lock screen spotlight option being disabled when disabling the start recommended section by @Raphire in #619 Fix log message formatting by @Raphire Note The -RemoveCommApps and -RemoveW11Outlook command-line parameters for uninstalling a few specific apps have been removed with this release. If you previously relied on these parameters, please see this wiki page for alternative methods of removing these apps. Download: Win11Debloat 06.11.2026 | Open Source View: Win11Debloat Home Page | Screenshots 1| 2 Get alerted to all of our Software updates on Twitter at @NeowinSoftware
    • Yes for me, I installed 'old calculator' (Windows 7 calculator) in its place since it is more useful to me. I think paint is the only one I left installed
    • eh I'll wait for the June 2026 MVS ISO downloads which should be coming out next Tuesday June 16 and possibly contain build 8655 instead of 8653
    • read this recent topic in another forum: https://www.askwoody.com/forums/topic/still-on-win-10-and-happy-to-be-there/ some people are happy sticking with Win10
  • Recent Achievements

    • Rookie
      restore went up a rank
      Rookie
    • Very Popular
      AndrewSteel earned a badge
      Very Popular
    • Veteran
      Taliseian went up a rank
      Veteran
    • One Month Later
      Clizby earned a badge
      One Month Later
    • One Month Later
      Timaximus earned a badge
      One Month Later
  • Popular Contributors

    1. 1
      +primortal
      509
    2. 2
      +Edouard
      162
    3. 3
      PsYcHoKiLLa
      155
    4. 4
      ATLien_0
      82
    5. 5
      Steven P.
      79
  • Tell a friend

    Love Neowin? Tell a friend!