Screeps: World

Screeps: World

Not enough ratings
[screepsmod-auth] Authentication module
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
15.000 B
15 Nov, 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
12 Comments
backdafackup 27 May, 2024 @ 10:41pm 
TypeError: env.setex is not a function
at Object.exports.genToken (D:\Games\steamapps\steamapps\common\Screeps\server\node_modules\@screeps\backend\lib\authlib.js:9:16)
at app.get (D:\Games\steamapps\steamapps\common\Screeps\server\node_modules\screepsmod-auth\lib\steam\index.js:49:13)
Justin 28 Jan, 2024 @ 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 28 Jan, 2024 @ 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 28 Jan, 2024 @ 8:10pm 
Same here.
ReferenceError: setPassword is not defined
linkerError 28 Dec, 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 24 Apr, 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] 21 Jul, 2017 @ 3:52pm 
You can also add a server password
Elora  [author] 21 Jul, 2017 @ 3:52pm 
The only way its accessible is if you have the ports open to the internet
Arano 19 Jul, 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] 18 Jul, 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