@udibo/oauth2 0.55.2 → 0.55.3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@udibo/oauth2",
3
- "version": "0.55.2",
3
+ "version": "0.55.3",
4
4
  "description": "A flexible OAuth2 toolkit: framework-agnostic authorization & resource servers, a typed client, Hono adapters (including a backend-for-frontend), Express adapters, and React bindings.",
5
5
  "keywords": [
6
6
  "authorization-server",
@@ -4,8 +4,8 @@ description: Build an OAuth2 authorization server for a Node application with @u
4
4
  license: MIT
5
5
  compatibility: Node.js 22.18 or later for the TypeScript quickstart.
6
6
  metadata:
7
- version: "0.55.2"
8
- targets: "@udibo/oauth2@0.55.2"
7
+ version: "0.55.3"
8
+ targets: "@udibo/oauth2@0.55.3"
9
9
  ---
10
10
 
11
11
  # Build authorization with @udibo/oauth2
@@ -63,12 +63,12 @@ the person's local secret storage and out of the conversation.
63
63
 
64
64
  ## Your own authorization server
65
65
 
66
- For a local sign-in, follow the complete app in the [versioned quickstart](https://github.com/udibo/oauth2/blob/0.55.2/docs/quickstart.md).
66
+ For a local sign-in, follow the complete app in the [versioned quickstart](https://github.com/udibo/oauth2/blob/0.55.3/docs/quickstart.md).
67
67
  In an existing project, keep its lockfile and package manager. Pin the package
68
68
  to the version this skill targets. For an npm project:
69
69
 
70
70
  ```sh
71
- npm install --save-exact @udibo/oauth2@0.55.2
71
+ npm install --save-exact @udibo/oauth2@0.55.3
72
72
  ```
73
73
 
74
74
  For a local provider, create the quickstart's development configuration with
@@ -84,9 +84,13 @@ the app configuration. In the app's `package.json`, add this entry to
84
84
  }
85
85
  ```
86
86
 
87
- From the app directory, run that script with the project's package manager
88
- (`npm run auth:dev`, `pnpm run auth:dev` or `yarn run auth:dev`). The script
89
- uses the CLI installed for the app and reads its local `idp.json`.
87
+ From the app directory, run that script with the project's package manager.
88
+ For an npm project, run the following command. It uses the CLI installed
89
+ for the app and reads its local `idp.json`.
90
+
91
+ ```sh
92
+ npm run auth:dev
93
+ ```
90
94
 
91
95
  Open the app's protected page in a signed-out browser, sign in through the
92
96
  provider, and check that the callback returns to the protected page. Sign
@@ -101,7 +105,7 @@ rotation atomic. Wire the authorization-code grant with PKCE and the refresh
101
105
  grant the application needs. Configure the issuer and registered redirects
102
106
  from the deployment settings. Run the package's store contract tests and
103
107
  exercise sign-in, refresh and revocation before switching application traffic.
104
- [Authorization server guide](https://github.com/udibo/oauth2/blob/0.55.2/docs/guides/become-an-oauth-provider.md) · [Production deployment](https://github.com/udibo/oauth2/blob/0.55.2/docs/guides/production-deployment.md)
108
+ [Authorization server guide](https://github.com/udibo/oauth2/blob/0.55.3/docs/guides/become-an-oauth-provider.md) · [Production deployment](https://github.com/udibo/oauth2/blob/0.55.3/docs/guides/production-deployment.md)
105
109
 
106
110
  ## Connect a client and protect an API
107
111
 
@@ -115,7 +119,7 @@ For an API, mount the bearer middleware from
115
119
  scope required by the route. Check the verified subject's application
116
120
  permissions before returning a private record. Exercise a permitted request,
117
121
  a request without a token and a request whose token lacks the route's scope.
118
- [Protect an API](https://github.com/udibo/oauth2/blob/0.55.2/docs/guides/protect-an-api.md)
122
+ [Protect an API](https://github.com/udibo/oauth2/blob/0.55.3/docs/guides/protect-an-api.md)
119
123
 
120
124
  ## Hosted path: connect a tenant
121
125
 
@@ -124,7 +128,7 @@ application in their tenant and register the callback.
124
128
  Ask for its public issuer and client ID, and the name of the environment
125
129
  variable holding the secret. Use those settings on the server and repeat the
126
130
  client sign-in and protected API checks.
127
- [Hosted integration guide](https://github.com/udibo/oauth2/blob/0.55.2/docs/guides/use-udibo.md)
131
+ [Hosted integration guide](https://github.com/udibo/oauth2/blob/0.55.3/docs/guides/use-udibo.md)
128
132
 
129
133
  ## Migrating between authorization servers
130
134
 
@@ -132,4 +136,4 @@ First adopt the package against the existing issuer. Verify sign-in, sign-out,
132
136
  session continuity and one protected request on that issuer. Before switching
133
137
  issuers or moving users, present a separate plan covering account identifiers,
134
138
  credentials, registrations, cutover and rollback. Wait for approval.
135
- [Migration guide](https://github.com/udibo/oauth2/blob/0.55.2/docs/guides/migrate-from-another-provider.md)
139
+ [Migration guide](https://github.com/udibo/oauth2/blob/0.55.3/docs/guides/migrate-from-another-provider.md)