==== AuthAPI 1 login ==== ----- === Auth Login API === ----- https://auth.pleaseignore.com/api/1.0/login [[it:auth_api:1.0 | Back to Auth API]] == Parameters == * Pass one, priority is this order (If you pass both, it will only use the first) * user - auth username to authenticate against * character - exact primary character name on the auth account to authenticate against * Required * pass - SHA1 hash of the user's external API password == Example Returns: == User not found: { auth:failed error:none } Multiple users found: { auth:failed error:non } Authentication failed: { auth:failed error:password } Parameters missing { auth:missing missing:all } Successful Authentication: { "username": "AevumDecessus", "superuser": true, - Is an auth superuser "primarycharacter": { "corporation": { "ticker": "B0RT", "name": "Dreddit", "id": 1018389948 }, "alliance": { "ticker": "TEST", "id": 498125261, "name": "Test Alliance Please Ignore" }, "id": 1649795613, "name": "Aevum Decessus" }, "auth": "ok", - Successful authentication "email": "******", "groups": [ { "admin": false, "id": 1, "name": "Dreddit" }, { "admin": false, "id": 2, "name": "Dreddit Directors" }, { "admin": false, "id": 5, "name": "B0RT HR" }, { "admin": false, "id": 6, "name": "Test Alliance" }, { "admin": false, "id": 19, "name": "Admin" }, { "admin": false, "id": 21, "name": "Alliance Directors" }, { "admin": false, "id": 22, "name": "Alliance Logistics" }, { "admin": false, "id": 24, "name": "Predditors" }, { "admin": false, "id": 30, "name": "Short Bus" }, { "admin": false, "id": 31, "name": "School Yard" }, { "admin": false, "id": 34, "name": "Romeo Squad" }, { "admin": true, "id": 40, "name": "Devs" }, { "admin": false, "id": 43, "name": "Test Social" }, { "admin": false, "id": 45, "name": "Dawww" }, { "admin": false, "id": 49, "name": "Military Directorate" }, { "admin": false, "id": 53, "name": "Reimbursement Reviewer" }, { "admin": false, "id": 56, "name": "Server Admin" }, { "admin": false, "id": 75, "name": "Reimbursement Payer" }, { "admin": false, "id": 76, "name": "deedeereddit" }, { "admin": false, "id": 101, "name": "Capitals" }, { "admin": false, "id": 103, "name": "Broadcast Tester" }, { "admin": true, "id": 112, "name": "Subdreddit" }, { "admin": true, "id": 115, "name": "TESTspeare" }, { "admin": false, "id": 121, "name": "Badger Den" }, { "admin": false, "id": 125, "name": "ftptest" } ], "id": 61, - Auth UserId "staff": true }