Git Product home page Git Product logo

mjolnir-authentication-server's Introduction

Mjölnir Authentication Server

Build Status

Abstract

Mjölnir authentication is fully compatible with Yggdrasil authentication which is used by Minecraft and other Mojang apps. However, Mjölnir is developed for replacing the authentication system of Minecraft in case you want an own authentication server.

Features (planned):

  • Backup authentication server (in proxy mode)
  • Rate limit

In which cases are good such a system?

  • You have users who do not have premium but you still want to maintain an online server.
  • You want to have a backup authentication system.
  • ...or just because you can do it. :)

Usage (clients/servers)

See Usage guide.

Installation/Usage (Mjölnir)

See Installation guide.

Utilities

See Utilities page.

Dev Installation

See Contribution guide for dev installation.

Specification

Documentation

Roadmap/Changelog

  • 1.0.0: User management with file backend
  • 1.1.0: MongoDB backend
  • 1.2.0: Transparent (proxy) mode

License

MIT

mjolnir-authentication-server's People

Contributors

rutkai avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

mjolnir-authentication-server's Issues

Register page ?

Hi,
Is there a way to create register page ?
I'm actually looking for a good Yggdrasil-like auth system and I want it to be as simple as possible to understand for my users.

Mongodb not working

Ok, so I set the server up the way it's in the documentation. I managed to get the server working with defining users in file _( I removed the error throw code from the mongodb module ). Without the modification, I get this error, I believe it's not a problem with my stuff.

---- Mjolnir authentication server (auth) ----
(node:1365) DeprecationWarning: current Server Discovery and Monitoring engine is deprecated, and will be removed in a future version. To use the new Server Discover and Monitoring engine, pass option { useUnifiedTopology: true } to the MongoClient constructor.
2020-11-28 14:20:38\| apiserver is listening...
2020-11-28 14:20:38\| authserver is listening...
2020-11-28 14:20:38\| sessionserver is listening...
/vercel/workpath0/node_modules/mongodb/lib/topologies/replset.js:339
throw err;
^
TypeError: db.collection is not a function
at /vercel/workpath0/lib/driver/mongodb.js:12:16
at /vercel/workpath0/node_modules/mongodb/lib/utils.js:677:5
at /vercel/workpath0/node_modules/mongodb/lib/mongo_client.js:226:7
at connectCallback (/vercel/workpath0/node_modules/mongodb/lib/operations/connect.js:366:5)
at /vercel/workpath0/node_modules/mongodb/lib/operations/connect.js:602:5
at ReplSet.connectHandler (/vercel/workpath0/node_modules/mongodb/lib/topologies/replset.js:336:9)
at Object.onceWrapper (events.js:421:26)
at ReplSet.emit (events.js:314:20)
at /vercel/workpath0/node_modules/mongodb/lib/core/topologies/replset.js:796:18
at processTicksAndRejections (internal/process/task_queues.js:79:11)
Error: Command "node app.js" exited with 1

Is this a good idea to change Host File in client ?

Hi, i want to use your mjolnir authenthification system, but i'm not sure that modifiing the host file of the client is good idea, could you tell me more about that, how it actually work and if it's not so problematic to do so. Thank you in advance for your help.

does this have to be a valid Mojang account

Does the accounts that are added to Mjolnir have to be valid accounts. Because I cannot login even though everything seems to be working fine. I get no errors on the app.js.

Username: Error: connect ECONNREFUSED 127.0.0.1:27017

I passed all steps in installation section, and then i tried to run
sudo NODE_ENV=production node db.js show
and got this error:
You may find a user by Username or Player name: Username: Error: connect ECONNREFUSED 127.0.0.1:27017 at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1138:16) { name: 'MongoError' }
Please help, i newer worked with node.js or Mongodb.

OpenSSL not found

When starting it throws an error that OpenSSL is not found on these paths
.../lib/pem/openssl.js
.../lib/which.js
.../lib/isexe/index.js
.../lib/isexe/which.js
Pls help

About Signature

When I join in the server which is edit by new yggdrasil , I can watch my skin , but I cant watch others , I get logs "Signature is missing from textures payload" , I checked the certificate(yggdrasil_session_pubkey.der) that is ok. I don't know what should I do.
Game version: 1.12.2

Feature: Microsoft type session proxy

Allow users to use standard launchers and proxies, by using Mjolnir as Yggdrasil front end for Microsoft OAuth type login.

Basically, recently I switched from cracked version, to legit, but account I got is connected with Microsoft. Using something, that allows me to use my old launchers, would be very useful and could allow Yggdrasil type launchers to live at least to the point, when Microsoft accounts are fully enforced.

Support

Hello! Mivel láttam, hogy magyar vagy ezért írok magyarul ... Egy olyan kérdésem lenne, maga a project még él ? Esetleg támogatást tudsz még nyújtani, mert lenne pár kérdésem.

Is it possible to use with Mysql or postgreSQL ?

Hi, i just wanted to know if it's possible to change from mongoDB to MySQL or postgreSQL ? If not, do you think it will be difficult to do ? do you have some hint to do this ?
thank you in advance for your help.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.