Skip to content

Commit 00b31bf

Browse files
committed
npm org change. @HarperDB -> @HarperFast
resolves #25
1 parent 46265f2 commit 00b31bf

13 files changed

+45
-45
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ OAuth 2.0 and OpenID Connect authentication for Harper applications. Supports Gi
1414
## Installation
1515

1616
```bash
17-
npm install @harperdb/oauth
17+
npm install @harperfast/oauth
1818
```
1919

2020
## Quick Start
@@ -24,8 +24,8 @@ npm install @harperdb/oauth
2424
Add to your `config.yaml`:
2525

2626
```yaml
27-
'@harperdb/oauth':
28-
package: '@harperdb/oauth'
27+
'@harperfast/oauth':
28+
package: '@harperfast/oauth'
2929
providers:
3030
github:
3131
clientId: ${OAUTH_GITHUB_CLIENT_ID}
@@ -53,7 +53,7 @@ Create or update users when they log in:
5353

5454
```typescript
5555
// resources.ts
56-
import { registerHooks } from '@harperdb/oauth';
56+
import { registerHooks } from '@harperfast/oauth';
5757

5858
registerHooks({
5959
onLogin: async (oauthUser, tokenResponse, session, request, provider) => {
@@ -195,7 +195,7 @@ Tokens automatically expire after 10 minutes.
195195
Enable debug endpoints for testing:
196196

197197
```yaml
198-
'@harperdb/oauth':
198+
'@harperfast/oauth':
199199
debug: true
200200
providers:
201201
github:

docs/api-reference.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ Register lifecycle hooks programmatically.
198198
**Import:**
199199

200200
```javascript
201-
import { registerHooks } from '@harperdb/oauth';
201+
import { registerHooks } from '@harperfast/oauth';
202202
```
203203

204204
**Signature:**

docs/configuration.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
# Configuration Reference
22

3-
Complete configuration options for the `@harperdb/oauth` plugin.
3+
Complete configuration options for the `@harperfast/oauth` plugin.
44

55
## Basic Configuration
66

77
```yaml
8-
'@harperdb/oauth':
9-
package: '@harperdb/oauth'
8+
'@harperfast/oauth':
9+
package: '@harperfast/oauth'
1010
providers:
1111
github:
1212
clientId: ${OAUTH_GITHUB_CLIENT_ID}
@@ -112,7 +112,7 @@ The OAuth plugin uses two different redirect configurations that serve distinct
112112
**Configuration:**
113113

114114
```yaml
115-
'@harperdb/oauth':
115+
'@harperfast/oauth':
116116
redirectUri: ${OAUTH_REDIRECT_URI}
117117
providers:
118118
github:
@@ -143,7 +143,7 @@ The OAuth plugin uses two different redirect configurations that serve distinct
143143
**Configuration:**
144144

145145
```yaml
146-
'@harperdb/oauth':
146+
'@harperfast/oauth':
147147
postLoginRedirect: ${OAUTH_POST_LOGIN_REDIRECT} # Default: '/'
148148
```
149149

@@ -202,7 +202,7 @@ window.location.href = '/oauth/github/login?redirect=' + encodeURIComponent('/ap
202202
**Recommended:** Configure `postLoginRedirect` with your SPA route including the fragment:
203203

204204
```yaml
205-
'@harperdb/oauth':
205+
'@harperfast/oauth':
206206
postLoginRedirect: '/app#home' # Always land on SPA home view
207207
```
208208

@@ -240,8 +240,8 @@ if (state.view) {
240240
### Complete Redirect Configuration Example
241241

242242
```yaml
243-
'@harperdb/oauth':
244-
package: '@harperdb/oauth'
243+
'@harperfast/oauth':
244+
package: '@harperfast/oauth'
245245
redirectUri: ${OAUTH_REDIRECT_URI} # OAuth callback: https://app.example.com/oauth/callback
246246
postLoginRedirect: ${OAUTH_POST_LOGIN_REDIRECT} # After login: /dashboard
247247
debug: false
@@ -283,7 +283,7 @@ See the [Lifecycle Hooks documentation](./lifecycle-hooks.md) for complete detai
283283

284284
```javascript
285285
// resources.js
286-
import { registerHooks } from '@harperdb/oauth';
286+
import { registerHooks } from '@harperfast/oauth';
287287
import { hooks } from './src/lib/oauthHooks.js';
288288

289289
registerHooks(hooks);
@@ -342,8 +342,8 @@ DEBUG_ALLOWED_IPS=
342342
## Complete Example
343343

344344
```yaml
345-
'@harperdb/oauth':
346-
package: '@harperdb/oauth'
345+
'@harperfast/oauth':
346+
package: '@harperfast/oauth'
347347
debug: false
348348
providers:
349349
github:

docs/getting-started.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
# Getting Started with @harperdb/oauth
1+
# Getting Started with @harperfast/oauth
22

3-
The `@harperdb/oauth` plugin provides OAuth 2.0 and OpenID Connect (OIDC) authentication for Harper applications.
3+
The `@harperfast/oauth` plugin provides OAuth 2.0 and OpenID Connect (OIDC) authentication for Harper applications.
44

55
## Installation
66

77
```bash
8-
npm install @harperdb/oauth
8+
npm install @harperfast/oauth
99
```
1010

1111
## Quick Start
@@ -15,8 +15,8 @@ npm install @harperdb/oauth
1515
Add the plugin to your Harper application's `config.yaml`:
1616

1717
```yaml
18-
'@harperdb/oauth':
19-
package: '@harperdb/oauth'
18+
'@harperfast/oauth':
19+
package: '@harperfast/oauth'
2020
providers:
2121
github:
2222
clientId: ${OAUTH_GITHUB_CLIENT_ID}
@@ -35,7 +35,7 @@ export OAUTH_GITHUB_CLIENT_SECRET="your_github_client_secret"
3535
If you need to provision users or customize the authentication flow, register hooks in your `resources.js`:
3636

3737
```javascript
38-
import { registerHooks } from '@harperdb/oauth';
38+
import { registerHooks } from '@harperfast/oauth';
3939

4040
registerHooks({
4141
onLogin: async (oauthUser, tokenResponse, session, request, provider) => {

docs/lifecycle-hooks.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ import {
3232
validateDomainSafety,
3333
validateDomainAllowlist,
3434
validateAzureTenantId,
35-
} from '@harperdb/oauth';
35+
} from '@harperfast/oauth';
3636

3737
const { Organization } = tables;
3838

@@ -327,7 +327,7 @@ The typical pattern is to register hooks in your application's main entry point
327327
**resources.js (application entry point):**
328328
329329
```javascript
330-
import { registerHooks } from '@harperdb/oauth';
330+
import { registerHooks } from '@harperfast/oauth';
331331
import { hooks } from './src/lib/oauthHooks.js';
332332

333333
// Register hooks at module load time
@@ -412,7 +412,7 @@ You can also register hooks inline:
412412
**resources.js:**
413413
414414
```javascript
415-
import { registerHooks } from '@harperdb/oauth';
415+
import { registerHooks } from '@harperfast/oauth';
416416

417417
registerHooks({
418418
onLogin: async (oauthUser, tokenResponse, session, request, provider) => {
@@ -550,7 +550,7 @@ async function handleLogin(oauthUser, tokenResponse, session, request, provider)
550550
Use debug mode to test hooks during development:
551551
552552
```yaml
553-
'@harperdb/oauth':
553+
'@harperfast/oauth':
554554
debug: true
555555
providers:
556556
github:

docs/multi-tenant-sso.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ Store OAuth configs in your database (structure is up to you):
4040
The OAuth plugin calls your `onResolveProvider` hook when a user visits `/oauth/{tenantId}/login`:
4141

4242
```typescript
43-
import { registerHooks } from '@harperdb/oauth';
43+
import { registerHooks } from '@harperfast/oauth';
4444

4545
export async function handleApplication(scope) {
4646
const { tables, logger } = scope;
@@ -173,7 +173,7 @@ Load from database at runtime (shown in Quick Start above).
173173
Create an admin endpoint to add tenants without redeployment. The endpoint should:
174174

175175
- Verify admin access
176-
- Validate tenant data (use `validateTenantId()` and `validateDomainSafety()` from '@harperdb/oauth')
176+
- Validate tenant data (use `validateTenantId()` and `validateDomainSafety()` from '@harperfast/oauth')
177177
- Store tenant config in your database
178178
- Encrypt `clientSecret` before storing
179179

@@ -340,7 +340,7 @@ import {
340340
validateTenantId, // Validates tenant ID format
341341
sanitizeTenantName, // Sanitizes for HTML display
342342
validateAzureTenantId, // Validates Azure tenant GUID
343-
} from '@harperdb/oauth';
343+
} from '@harperfast/oauth';
344344

345345
// Example: Validate tenant registration
346346
const result = validateDomainSafety(domain);

docs/providers.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ Detailed setup instructions for each supported OAuth provider.
3434
### 2. Configure Plugin
3535

3636
```yaml
37-
'@harperdb/oauth':
37+
'@harperfast/oauth':
3838
providers:
3939
github:
4040
clientId: ${OAUTH_GITHUB_CLIENT_ID}
@@ -75,7 +75,7 @@ export OAUTH_GITHUB_CLIENT_SECRET="your_client_secret"
7575
### 2. Configure Plugin
7676

7777
```yaml
78-
'@harperdb/oauth':
78+
'@harperfast/oauth':
7979
providers:
8080
google:
8181
clientId: ${OAUTH_GOOGLE_CLIENT_ID}
@@ -119,7 +119,7 @@ export OAUTH_GOOGLE_CLIENT_SECRET="your_client_secret"
119119
### 2. Configure Plugin
120120

121121
```yaml
122-
'@harperdb/oauth':
122+
'@harperfast/oauth':
123123
providers:
124124
azure:
125125
clientId: ${OAUTH_AZURE_CLIENT_ID}
@@ -164,7 +164,7 @@ export OAUTH_AZURE_TENANT_ID="your_tenant_id"
164164
### 2. Configure Plugin
165165

166166
```yaml
167-
'@harperdb/oauth':
167+
'@harperfast/oauth':
168168
providers:
169169
auth0:
170170
domain: ${OAUTH_AUTH0_DOMAIN}
@@ -211,7 +211,7 @@ export OAUTH_AUTH0_CLIENT_SECRET="your_client_secret"
211211
### 2. Configure Plugin
212212

213213
```yaml
214-
'@harperdb/oauth':
214+
'@harperfast/oauth':
215215
providers:
216216
okta:
217217
domain: ${OAUTH_OKTA_DOMAIN}
@@ -240,7 +240,7 @@ export OAUTH_OKTA_CLIENT_SECRET="your_client_secret"
240240
Okta supports mapping user groups to roles. The plugin will use the first group as the user's role:
241241

242242
```yaml
243-
'@harperdb/oauth':
243+
'@harperfast/oauth':
244244
providers:
245245
okta:
246246
domain: ${OAUTH_OKTA_DOMAIN}
@@ -273,7 +273,7 @@ For other OpenID Connect compatible providers:
273273
### Configuration
274274

275275
```yaml
276-
'@harperdb/oauth':
276+
'@harperfast/oauth':
277277
providers:
278278
custom:
279279
clientId: ${OAUTH_CUSTOM_CLIENT_ID}

docs/token-refresh-and-sessions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ Need to force a refresh? Send any authenticated HTTP request to trigger middlewa
326326
Enable debug mode in config:
327327

328328
```yaml
329-
'@harperdb/oauth':
329+
'@harperfast/oauth':
330330
debug: true
331331
```
332332

examples/okta-multi-tenant.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* organizations with tenant routing and user provisioning.
66
*/
77

8-
import { registerHooks, TenantManager } from '@harperdb/oauth';
8+
import { registerHooks, TenantManager } from '@harperfast/oauth';
99

1010
// Initialize tenant manager with multiple Okta organizations
1111
const tenantManager = new TenantManager();

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)