Screeps: World

Screeps: World

Not enough ratings
[screepsmod-auth] Authentication module
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
15.000 B
Nov 15, 2016 @ 11:06am
1 Change Note ( view )

Subscribe to download
[screepsmod-auth] Authentication module

In 1 collection by Elora
Ags131's mods
2 items
Description
Auth mod for screeps.
Goto https://github.com/screepsmods/screepsmod-auth for README
11 Comments
Justin Jan 28 @ 8:24pm 
1. Go to C:/Program Files (x86)/Steam/steamapps/common/Screeps/server
2. npm install @screeps/common
3. Restart server

This fixed the problem for me.
Justin Jan 28 @ 8:10pm 
Also,
Error loading "C:\Program Files (x86)\Steam\steamapps\common\Screeps\server\node_modules\screepsmod-auth\index.js": Error: Cannot find module '@screeps/common'
at Function.Module._resolveFilename (module.js:543:15)
at Function.Module._load (module.js:473:25)
at Module.require (module.js:586:17)
at require (internal/module.js:11:18)
at Object.<anonymous> (C:\Program Files (x86)\Steam\steamapps\common\Screeps\server\node_modules\@screeps\backend\lib\authlib.js:4:14)
at Object.<anonymous> (C:\Program Files (x86)\Steam\steamapps\common\Screeps\server\node_modules\@screeps\backend\lib\authlib.js:42:3)
at Module._compile (module.js:642:30)
at Object.Module._extensions..js (module.js:653:10)
at Module.load (module.js:561:32)
at tryModuleLoad (module.js:504:12)
Justin Jan 28 @ 8:10pm 
Same here.
ReferenceError: setPassword is not defined
linkerError Dec 28, 2023 @ 12:02pm 
This mod doesn't work. I've installed it via the workshop and restarted the server. However, typing 'setPassword' in the cli does not work and produces an error message "setPassword is not defined". It shows up in the 'mods.json' and when I click 'mods' in the Screeps dedicated server.
NameVergessen Apr 24, 2021 @ 3:42pm 
hi,as far as i can see this mod enables api calls. I can't get it to work for that. I always get 401 errors. Any hints? Hidden configs? How do i need to format the header?
Elora  [author] Jul 21, 2017 @ 3:52pm 
You can also add a server password
Elora  [author] Jul 21, 2017 @ 3:52pm 
The only way its accessible is if you have the ports open to the internet
Arano Jul 19, 2017 @ 10:55pm 
So... anyone with a steam client can connect to my server if network-accessible ?
Isn't there any way to prevent unauthorized people to connect (wether by API or client) to my server ? Steam functionnality too / mod / hiden setting ?
Elora  [author] Jul 18, 2017 @ 11:15am 
The private server supports a server wide password out of the box, and allows authentication via steam account integrated into the client. This adds the option for users to set passwords allowing them to access the API directly. A common use for this is uploading code via gulp or grunt. Or backing up Memory
CaptainCoffee ☕ Nov 24, 2016 @ 9:33am 
@The Flying Husky: this adds user/pass authentication for the screeps private server