Skip to content

Instantly share code, notes, and snippets.

@taskcruncher
Created March 21, 2022 10:53
Show Gist options
  • Save taskcruncher/6ec8b96ad5490a32ca68aa7dd88dd8a0 to your computer and use it in GitHub Desktop.
Save taskcruncher/6ec8b96ad5490a32ca68aa7dd88dd8a0 to your computer and use it in GitHub Desktop.
received action:
TCAuthAction.simpAuthAction(
TCSimpAuthAction.attemptAuth(
SimpUsername(asString: "7928xxxxx@taskcruncher.com"),
SimpPassword(asString: "xxxx")
)
)
(No state changes)
receive value: ((data: 134 bytes, response: <NSHTTPURLResponse: 0x282731780> { URL: https://auth.simperium.com/1/withdrawal-radiators-17b/authorize/ } { Status Code: 200, Headers {
"Access-Control-Allow-Origin" = (
"*"
);
"Content-Length" = (
134
);
"Content-Type" = (
"application/json"
);
Date = (
"Mon, 24 Jan 2022 16:52:42 GMT"
);
Server = (
nginx
);
"Strict-Transport-Security" = (
"max-age=31536000"
);
Vary = (
Origin
);
"access-control-allow-credentials" = (
true
);
} }))
lbj 15048198ec7a4b5ab735986ebcacdcbe
receive finished
GENERAL: lbj result from simp server is success(TaskCruncher.SimpSucessfulAuthResponseObject(username: "79288e19@taskcruncher.com", access_token: "15048198ec7a4b5ab735986ebcacdcbe", userid: "f6ee092c9b83709082ae0b956a60fba9")) n/a: shortlog 0 n/a: shortlog
GENERAL: lbj SIMP AUTH SUCCESS. Setting simpsSession access token . . . 15048198ec7a4b5ab735986ebcacdcbe n/a: shortlog 0 n/a: shortlog
GENERAL: lbj SIMP AUTH. Authorizing simp instance. n/a: shortlog 0 n/a: shortlog
2022-03-20 01:43:43.851331-0400 TaskCruncher[3290:1756855] Simperium starting...
2022-03-20 01:43:43.854035-0400 TaskCruncher[3290:1756378] Simperium managing 190 Folder object instances
2022-03-20 01:43:44.305387-0400 TaskCruncher[3290:1756378] Simperium managing 5867 Task object instances
2022-03-20 01:43:44.305905-0400 TaskCruncher[3290:1756378] Simperium managing 3 StoredAppleUser object instances
2022-03-20 01:43:44.312845-0400 TaskCruncher[3290:1756378] Simperium managing 1039 PoL object instances
2022-03-20 01:43:44.312977-0400 TaskCruncher[3290:1756855] Simperium starting network managers...
2022-03-20 01:43:44.313623-0400 TaskCruncher[3290:1756378] SocketRocket: In debug mode. Allowing connection to any root cert
received action:
TCAuthAction.simpAuthAction(
TCSimpAuthAction.processServerResponse(
Result.success(
SimpSucessfulAuthResponseObject(
username: "79288e19@taskcruncher.com",
access_token: "15048198ec7a4b5ab735986ebcacdcbe",
userid: "f6ee092c9b83709082ae0b956a60fba9"
)
)
)
)
TCBaseState(
sharedState: TCSharedState(…),
state: TCAuthState(
appleUser: TCAppleUser(…),
simpSession: TCCurrentSimpSession(
+ lastLoginDate: Date(2022-03-20T05:43:33.965Z),
unsyncedItems: 190,
+ resultFromServer: Result.success(
+ SimpSucessfulAuthResponseObject(
+ username: "79288e19@taskcruncher.com",
+ access_token: "15048198ec7a4b5ab735986ebcacdcbe",
+ userid: "f6ee092c9b83709082ae0b956a60fba9"
+ )
+ )
)
)
)
2022-03-20 01:43:44.987009-0400 TaskCruncher[3290:1756740] Simperium received unexpected auth response: {"msg": "Token invalid", "code": 401}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment