@tangle-network/sign-in 0.2.2 → 0.2.4

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.
Files changed (2) hide show
  1. package/README.md +27 -1
  2. package/package.json +3 -3
package/README.md CHANGED
@@ -3,7 +3,10 @@
3
3
  Small browser client for public Sign in with Tangle applications. It uses OpenID Connect Authorization Code + S256 PKCE. It never reads or forwards the Tangle session cookie.
4
4
 
5
5
  ```ts
6
- import { createTangleSignIn, mountTangleSignInButton } from "@tangle-network/sign-in";
6
+ import {
7
+ createTangleSignIn,
8
+ mountTangleSignInButton,
9
+ } from "@tangle-network/sign-in";
7
10
 
8
11
  const tangle = createTangleSignIn({
9
12
  clientId: "YOUR_PUBLIC_CLIENT_ID",
@@ -95,3 +98,26 @@ The Platform browser journey at
95
98
  builds, packs and installs this package, then drives its actual button, login,
96
99
  refresh and disconnect against the real local provider and proxy. No token
97
100
  response is stubbed in that journey.
101
+ A second journey in the same spec registers a confidential app in the console
102
+ and keeps its secret in Node. It exchanges codes with `client_secret_basic` and
103
+ `client_secret_post`, rotates the secret and checks that the old one is refused,
104
+ then disconnects. It also checks that the unfunded, verified account is still
105
+ refused paid work.
106
+
107
+ ## Prove a served origin
108
+
109
+ ```sh
110
+ E2E_OIDC_FIXTURE_EMAIL=... E2E_OIDC_FIXTURE_PASSWORD=... \
111
+ node scripts/identity/prove-oidc-login.mjs \
112
+ --origin https://id.tangle.tools --expect-revision <full commit sha>
113
+ ```
114
+
115
+ The command checks discovery for server and browser clients. It reads the
116
+ revision from `<origin>/health` and stops unless that revision is the expected
117
+ one. It then runs both journeys against the origin with no retries and writes
118
+ `oidc-login-proof.json`. The record passes only when every journey ran and
119
+ passed on its first attempt. A deployed origin needs an operator-provisioned
120
+ verified account with an empty wallet; a loopback origin running the local harness mints its own.
121
+ The command exits non-zero on anything but `pass`, so a release step that runs
122
+ it after a deploy is blocked by a failed, skipped or stale proof.
123
+ A pass on source or a local harness is not proof of a deployed revision.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tangle-network/sign-in",
3
- "version": "0.2.2",
3
+ "version": "0.2.4",
4
4
  "description": "Drop-in Sign in with Tangle browser client",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -32,8 +32,8 @@
32
32
  "oauth4webapi": "3.8.8"
33
33
  },
34
34
  "tangleRelease": {
35
- "sourceSha": "bc585d2d273d422fbd799aaa67983f746261a0c7",
36
- "mergedAt": "2026-11-02T14:57:35-08:00"
35
+ "sourceSha": "8bfd563debb68431c5c4cb51c72ce6646b8af212",
36
+ "mergedAt": "2026-11-08T09:47:15-08:00"
37
37
  },
38
38
  "scripts": {
39
39
  "build": "tsdown",