Skip to content

Small thing that can be used to test the BL authentication thing.

Notifications You must be signed in to change notification settings

foxscotch/test-bl-auth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Test-BL-Auth

This is a Django app I made quickly to test authQuery.php. It's pretty simple. Once you've got the app running, there's a text box on the index page. Put your Blockland username in that, then hit "send data," which will send that and your IP in a POST request to authQuery.php, which will then return a positive or negative depending on whether or not you put in a username that corresponds to your IP on the Blockland master server.

[Requires requests.] (http://docs.python-requests.org/en/latest/)

It's meant to be online, so it would typically use the IP of the machine that connected to it, but if you're running it in the dev server locally, it'll send an invalid value for the IP (at least it does for me. specifically, it uses "::1"), which the auth tool will ignore, and instead choose to use the IP of the machine that sent the request, which would, in this case, be your actual IP. So it should be fine.

If you're going to try to run it locally, you'll need to change the condition in the if statement in the settings file. It checks for the name of my computer, so you'll need to change it to the name of yours. That just makes it easier to move between deployment and development. On the other hand, if you're going to try to run it on a real server, you'll need to edit the ALLOWED_HOSTS setting, because right now it's only set to allow my domain, any subdomains of it, and 127.0.0.1 (which means you don't need to edit that necessarily if you're just running it locally).

As far as the license is concerned, I guess it's just in the public domain. Why not.

About

Small thing that can be used to test the BL authentication thing.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published