@dokebi/oauth 0.1.0 → 0.1.1

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 (3) hide show
  1. package/AI.md +1 -1
  2. package/dist/plugin.js +1 -1
  3. package/package.json +1 -1
package/AI.md CHANGED
@@ -119,7 +119,7 @@ dokebi-oauth:
119
119
  dokebi-mcp: { app: mcp }
120
120
  ```
121
121
 
122
- The metadata documents answer `Access-Control-Allow-Origin: *`. `/oauth/token`, `/oauth/revoke` and `/oauth/register` have `config: { csrf: false, auth: false }` and are never sealed (`seal: false`). The consent decision (`POST /oauth/authorize`) is a form of your app: on a seal host (`dokebi-app.domains.<host>.seal`) it is sealed like every form (a plain post gets 415 `SEAL_REQUIRED`), so the consent page writes `data.seal.head` (§5: `seal(request)` of @dokebi/app), never a copied seal `<script>` or import map (`dokebi check` warns `seal-head-copied`). The plugin parses `application/x-www-form-urlencoded` bodies of its own routes itself (dokebi-web's `formBody` is not needed for them), so a **repeated parameter** is seen and refused (a framework parser keeps the last of `resource=A&resource=B` silently: the value checked and the value used could differ). Empty values count as omitted (RFC 6749 §3.1) but still count as a repeat.
122
+ The metadata documents answer `Access-Control-Allow-Origin: *`. `/oauth/token`, `/oauth/revoke` and `/oauth/register` have `config: { csrf: false, auth: false }` and are never sealed (`seal: false`). The consent decision (`POST /oauth/authorize`) is a form of your app: on a seal host (`dokebi-app.domains.<host>.seal`) it is sealed like every form (a plain post gets 415 `SEAL_REQUIRED`), so the consent page writes `data.seal.head` (§5: `seal(request)` of @dokebi/app), never a copied seal `<script>` or import map (`dokebi check` warns `seal-head-copied`). An **Inertia consent page** posts the decision with Inertia's `router.post` instead (sealed by `sealInertia`; the answer is 409 `X-Inertia-Location`, an error such as `CONSENT_EXPIRED` renders the app's error page in place), not with `@dokebi/seal/forms`, whose HTML error answer would be the app's own shell (plugins/dokebi-seal AI.md §5.2). The plugin parses `application/x-www-form-urlencoded` bodies of its own routes itself (dokebi-web's `formBody` is not needed for them), so a **repeated parameter** is seen and refused (a framework parser keeps the last of `resource=A&resource=B` silently: the value checked and the value used could differ). Empty values count as omitted (RFC 6749 §3.1) but still count as a repeat.
123
123
 
124
124
  **One resource comparison** decides everywhere (authorize, token, refresh, registration): scheme and host in lower case, the default port dropped, an empty path equal to `/` (RFC 3986 §6.2.3). The path, the query and their case are compared as they are. `resourceKey(uri)` and `sameResource(a, b)` are exported.
125
125
 
package/dist/plugin.js CHANGED
@@ -749,7 +749,7 @@ function checkHost(server, logger, where, url, apps, option) {
749
749
  export function defineOAuthPlugin(settings = {}) {
750
750
  return definePlugin({
751
751
  name: 'dokebi-oauth',
752
- version: '0.1.0',
752
+ version: '0.1.1',
753
753
  core: '^0.4.2',
754
754
  options: declaration,
755
755
  contributes: [describePoint],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dokebi/oauth",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "OAuth 2.1 authorization server for @dokebi/web on @dokebi/auth tokens: authorization code with PKCE, refresh rotation, revocation, client ID metadata documents, protected resource metadata and route protection.",
5
5
  "keywords": [
6
6
  "dokebi",