@owlmeans/client-auth 0.1.7 → 0.1.9
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
CHANGED
|
@@ -67,3 +67,20 @@ Auth service alias: `'auth'`.
|
|
|
67
67
|
- [`@owlmeans/auth`](../auth) — `Auth` type returned by `useSelfAuth`
|
|
68
68
|
- [`@owlmeans/auth-common`](../auth-common) — auth module route definitions
|
|
69
69
|
- [`@owlmeans/server-auth`](../server-auth) — server-side counterpart
|
|
70
|
+
|
|
71
|
+
<!-- owlmeans:agent-guidance:start -->
|
|
72
|
+
## Agent guidance
|
|
73
|
+
|
|
74
|
+
This package ships embedded Claude Code skills and GitHub Copilot instructions under
|
|
75
|
+
`agent-meta/`. After installing your `@owlmeans/*` packages, run the OwlMeans
|
|
76
|
+
agent-skills installer to place them into your project's native locations
|
|
77
|
+
(`.claude/skills/` and `.github/instructions/`):
|
|
78
|
+
|
|
79
|
+
```sh
|
|
80
|
+
npx @owlmeans/agent-skills
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
The embedded files are version-matched to this package release. Do not edit them
|
|
84
|
+
directly — they are regenerated on each publish. To contribute guidance edits,
|
|
85
|
+
open a PR against the source monorepo.
|
|
86
|
+
<!-- owlmeans:agent-guidance:end -->
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: "How to use @owlmeans/client-auth — client-side auth manager and UI components, setupExternalAuthentication() to wire OAuth/OIDC flows."
|
|
3
|
+
applyTo: "**/*.ts, **/*.tsx"
|
|
4
|
+
---
|
|
5
|
+
<!-- AUTO-GENERATED — do not edit. Regenerate via sync-agent-meta. -->
|
|
6
|
+
|
|
7
|
+
# @owlmeans/client-auth
|
|
8
|
+
|
|
9
|
+
**Layer:** Client
|
|
10
|
+
**Install:** `"@owlmeans/client-auth": "^0.1.9"` in `dependencies`
|
|
11
|
+
|
|
12
|
+
## Key Exports
|
|
13
|
+
|
|
14
|
+
| Export | Description |
|
|
15
|
+
|--------|-------------|
|
|
16
|
+
| `setupExternalAuthentication(alias)` | Register OAuth/OIDC external auth flow |
|
|
17
|
+
| Auth components | Login UI primitives |
|
|
18
|
+
| Auth service | Client-side auth manager |
|
|
19
|
+
| Modules | Auth module declarations |
|
|
20
|
+
| Constants | Auth aliases |
|
|
21
|
+
|
|
22
|
+
## Subpath Exports
|
|
23
|
+
|
|
24
|
+
- `./manager`, `./manager/modules`, `./manager/plugins`
|
|
25
|
+
|
|
26
|
+
## Usage
|
|
27
|
+
|
|
28
|
+
```typescript
|
|
29
|
+
import { setupExternalAuthentication } from '@owlmeans/client-auth'
|
|
30
|
+
setupExternalAuthentication(AUTH_WEB)
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
## Product-Viable Usage Notes
|
|
34
|
+
|
|
35
|
+
- The manager web app imports `DEFAULT_ALIAS` from `@owlmeans/client-auth` as the client-side equivalent of `DEFAULT_GUARD`.
|
|
36
|
+
- It imports `@owlmeans/web-oidc-rp/auth/plugins` for side effects; that registers OIDC and Google authentication plugins in the client auth manager.
|
|
37
|
+
- During Google/OIDC redirects, plugins persist the client auth control state, restore it on return, then submit `AuthCredentials` to the server auth flow.
|
|
38
|
+
- The browser receives and stores a normal OwlMeans bearer token. Product authorization remains server-side through module gates and handler checks, not through client-only state.
|
|
39
|
+
|
|
40
|
+
## Depends On
|
|
41
|
+
|
|
42
|
+
- `@owlmeans/auth`, `@owlmeans/auth-common`, `@owlmeans/client-context`, `@owlmeans/client-entrypoint`, `react`
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schemaVersion": 1,
|
|
3
|
+
"package": "@owlmeans/client-auth",
|
|
4
|
+
"version": "0.1.9",
|
|
5
|
+
"generatedAt": "2026-06-14T13:34:06.125Z",
|
|
6
|
+
"canonicalRepo": "https://github.com/owlmeans/common",
|
|
7
|
+
"entries": [
|
|
8
|
+
{
|
|
9
|
+
"kind": "skill",
|
|
10
|
+
"name": "client-auth",
|
|
11
|
+
"category": "package-specific",
|
|
12
|
+
"file": "skills/client-auth/SKILL.md",
|
|
13
|
+
"canonicalPath": ".claude/skills/client-auth/SKILL.md"
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"kind": "instruction",
|
|
17
|
+
"name": "client-auth",
|
|
18
|
+
"category": "package-specific",
|
|
19
|
+
"file": "instructions/client-auth.instructions.md",
|
|
20
|
+
"canonicalPath": ".github/instructions/client-auth.instructions.md"
|
|
21
|
+
}
|
|
22
|
+
]
|
|
23
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: client-auth
|
|
3
|
+
description: How to use @owlmeans/client-auth — client-side auth manager and UI components, setupExternalAuthentication() to wire OAuth/OIDC flows. Auto-invoked when importing client-auth helpers or registering external authentication.
|
|
4
|
+
user-invocable: false
|
|
5
|
+
---
|
|
6
|
+
<!-- AUTO-GENERATED — do not edit. Regenerate via sync-agent-meta. -->
|
|
7
|
+
|
|
8
|
+
# @owlmeans/client-auth
|
|
9
|
+
|
|
10
|
+
**Layer:** Client
|
|
11
|
+
**Install:** `"@owlmeans/client-auth": "^0.1.9"` in `dependencies`
|
|
12
|
+
|
|
13
|
+
## Key Exports
|
|
14
|
+
|
|
15
|
+
| Export | Description |
|
|
16
|
+
|--------|-------------|
|
|
17
|
+
| `setupExternalAuthentication(alias)` | Register OAuth/OIDC external auth flow module |
|
|
18
|
+
| Auth components | Login UI primitives |
|
|
19
|
+
| Auth service | Client-side auth manager service |
|
|
20
|
+
| Modules | Auth module declarations |
|
|
21
|
+
| Constants | Auth aliases (re-exports `AUTH_API`) |
|
|
22
|
+
|
|
23
|
+
## Subpath Exports
|
|
24
|
+
|
|
25
|
+
- `./manager` — client-side auth manager
|
|
26
|
+
- `./manager/modules` — manager module declarations
|
|
27
|
+
- `./manager/plugins` — pluggable token providers
|
|
28
|
+
|
|
29
|
+
## Usage
|
|
30
|
+
|
|
31
|
+
```typescript
|
|
32
|
+
import { setupExternalAuthentication } from '@owlmeans/client-auth'
|
|
33
|
+
|
|
34
|
+
setupExternalAuthentication(AUTH_WEB) // alias of the web auth service
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
## Product-Viable Usage Notes
|
|
38
|
+
|
|
39
|
+
- The manager web app imports `DEFAULT_ALIAS` from `@owlmeans/client-auth` as the client-side equivalent of `DEFAULT_GUARD`.
|
|
40
|
+
- It imports `@owlmeans/web-oidc-rp/auth/plugins` for side effects; that registers OIDC and Google authentication plugins in the client auth manager.
|
|
41
|
+
- During Google/OIDC redirects, plugins persist the client auth control state, restore it on return, then submit `AuthCredentials` to the server auth flow.
|
|
42
|
+
- The browser receives and stores a normal OwlMeans bearer token. Product authorization remains server-side through module gates and handler checks, not through client-only state.
|
|
43
|
+
|
|
44
|
+
## Depends On
|
|
45
|
+
|
|
46
|
+
- `@owlmeans/auth`, `@owlmeans/auth-common`
|
|
47
|
+
- `@owlmeans/client-context`, `@owlmeans/client-entrypoint`
|
|
48
|
+
- `react` (peer)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@owlmeans/client-auth",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.9",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"scripts": {
|
|
@@ -43,24 +43,24 @@
|
|
|
43
43
|
}
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@owlmeans/auth": "^0.1.
|
|
47
|
-
"@owlmeans/auth-common": "^0.1.
|
|
48
|
-
"@owlmeans/basic-envelope": "^0.1.
|
|
49
|
-
"@owlmeans/basic-keys": "^0.1.
|
|
50
|
-
"@owlmeans/client": "^0.1.
|
|
51
|
-
"@owlmeans/client-context": "^0.1.
|
|
52
|
-
"@owlmeans/client-flow": "^0.1.
|
|
53
|
-
"@owlmeans/client-entrypoint": "^0.1.
|
|
54
|
-
"@owlmeans/client-resource": "^0.1.
|
|
55
|
-
"@owlmeans/client-socket": "^0.1.
|
|
56
|
-
"@owlmeans/context": "^0.1.
|
|
57
|
-
"@owlmeans/did": "^0.1.
|
|
58
|
-
"@owlmeans/error": "^0.1.
|
|
59
|
-
"@owlmeans/flow": "^0.1.
|
|
60
|
-
"@owlmeans/entrypoint": "^0.1.
|
|
61
|
-
"@owlmeans/resource": "^0.1.
|
|
62
|
-
"@owlmeans/socket": "^0.1.
|
|
63
|
-
"@owlmeans/web-flow": "^0.1.
|
|
46
|
+
"@owlmeans/auth": "^0.1.9",
|
|
47
|
+
"@owlmeans/auth-common": "^0.1.9",
|
|
48
|
+
"@owlmeans/basic-envelope": "^0.1.9",
|
|
49
|
+
"@owlmeans/basic-keys": "^0.1.9",
|
|
50
|
+
"@owlmeans/client": "^0.1.9",
|
|
51
|
+
"@owlmeans/client-context": "^0.1.9",
|
|
52
|
+
"@owlmeans/client-flow": "^0.1.9",
|
|
53
|
+
"@owlmeans/client-entrypoint": "^0.1.9",
|
|
54
|
+
"@owlmeans/client-resource": "^0.1.9",
|
|
55
|
+
"@owlmeans/client-socket": "^0.1.9",
|
|
56
|
+
"@owlmeans/context": "^0.1.9",
|
|
57
|
+
"@owlmeans/did": "^0.1.9",
|
|
58
|
+
"@owlmeans/error": "^0.1.9",
|
|
59
|
+
"@owlmeans/flow": "^0.1.9",
|
|
60
|
+
"@owlmeans/entrypoint": "^0.1.9",
|
|
61
|
+
"@owlmeans/resource": "^0.1.9",
|
|
62
|
+
"@owlmeans/socket": "^0.1.9",
|
|
63
|
+
"@owlmeans/web-flow": "^0.1.9",
|
|
64
64
|
"@scure/base": "^1.1.9"
|
|
65
65
|
},
|
|
66
66
|
"peerDependencies": {
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
},
|
|
70
70
|
"devDependencies": {
|
|
71
71
|
"@owlmeans/dep-config": "workspace:*",
|
|
72
|
-
"@owlmeans/test-auth": "^0.1.
|
|
72
|
+
"@owlmeans/test-auth": "^0.1.9",
|
|
73
73
|
"@types/bun": "^1.3.0",
|
|
74
74
|
"@types/react": "^19.2.7",
|
|
75
75
|
"nodemon": "^3.1.11",
|