Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I can't figure out how to authenticate #11

Open
jfkinslow opened this issue Jun 17, 2018 · 2 comments
Open

I can't figure out how to authenticate #11

jfkinslow opened this issue Jun 17, 2018 · 2 comments
Labels

Comments

@jfkinslow
Copy link

I can't figure out what values to use to authenticate to the api

@AlinaNova21
Copy link
Member

It doing it entirely yourself, authenticates identically to the official server API,

POST /api/auth/signin
Content-Type: application/json

{ "email":"ags131", "password": "notMyPassword" }

That will return a token that you then send to the server in an x-token header. If doing this for file uploading, look into the gulp-screeps, grunt-screeps, or rollup-plugin-screeps packages. Otherwise, the python screepsapi project or node screeps-api project makes it easier by doing most of the background work for you.

@KarateSnoopy
Copy link

I made walk through on Youtube on the steps I did to get setup. There's a bunch of gotchas I hit starting at 8mins in: https://youtu.be/UpPGEHSPJKo?t=8m18s. I'll submit a pull request and open issues for the stuff I ran into

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants