@powerhousedao/reactor-workflow 6.2.3-dev.95 → 6.2.3-dev.96
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +10 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +45 -8
- package/dist/index.js.map +1 -1
- package/dist/{telemetry-40khRVKv.js → telemetry-CFvEcs_9.js} +2 -2
- package/dist/{telemetry-40khRVKv.js.map → telemetry-CFvEcs_9.js.map} +1 -1
- package/dist/testing.js +1 -1
- package/package.json +7 -7
package/README.md
CHANGED
|
@@ -835,6 +835,16 @@ set as a managed secret named `token` on the connection and runs the
|
|
|
835
835
|
connection check. Resolution refreshes the token 15 minutes before it
|
|
836
836
|
expires and rotates that secret in place.
|
|
837
837
|
|
|
838
|
+
A refresh the provider refuses with `invalid_grant` (the refresh token
|
|
839
|
+
expired or was revoked) ends the sign-in, and so does a stored token that
|
|
840
|
+
cannot be read. The runtime records it on the connection as a check would:
|
|
841
|
+
`status` ERROR, the refusal in `lastError`, once per refusal rather than once
|
|
842
|
+
per poll. A REVOKED connection keeps its status. A run or poll that needed the
|
|
843
|
+
token fails with `OAuthSignInRefused`. The stored token is still used until it
|
|
844
|
+
expires. A refresh that fails for another reason (a timeout, an outage)
|
|
845
|
+
records nothing, and the next call tries again. The next sign-in's check
|
|
846
|
+
records OK.
|
|
847
|
+
|
|
838
848
|
Token requests leave from the reactor process, so they are held to the egress
|
|
839
849
|
policy pieces run under: `https` to a public address, or an address named in
|
|
840
850
|
`PH_WORKFLOWS_EGRESS_ALLOW_ADDRESSES`, over `http` too.
|
package/dist/index.d.ts
CHANGED
|
@@ -19713,6 +19713,7 @@ export declare class WorkflowRuntimeService {
|
|
|
19713
19713
|
/** The host's OAuth2 apps, their client secrets loaded into the store once. */
|
|
19714
19714
|
private oauthApps;
|
|
19715
19715
|
private oauthRefresher;
|
|
19716
|
+
private recordSignInRefused;
|
|
19716
19717
|
/** The seeding failure a restart is needed to clear, or undefined while the
|
|
19717
19718
|
* registry is seeded. Resolves once seeding has finished either way. */
|
|
19718
19719
|
seedFailure(): Promise<unknown>;
|