@authrim/setup 0.1.27 → 0.1.28

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.
@@ -24,7 +24,7 @@ function printBanner() {
24
24
  console.log('');
25
25
  console.log(chalk.blue('╔═══════════════════════════════════════════════════════════╗'));
26
26
  console.log(chalk.blue('║') +
27
- chalk.bold.white(' 🔐 Authrim Setup v0.1.27 ') +
27
+ chalk.bold.white(' 🔐 Authrim Setup v0.1.28 ') +
28
28
  chalk.blue('║'));
29
29
  console.log(chalk.blue('║') +
30
30
  chalk.gray(' OIDC Provider on Cloudflare Workers ') +
package/dist/index.js CHANGED
@@ -17,7 +17,7 @@ const program = new Command();
17
17
  program
18
18
  .name('authrim-setup')
19
19
  .description('CLI tool for setting up Authrim OIDC Provider on Cloudflare Workers')
20
- .version('0.1.27');
20
+ .version('0.1.28');
21
21
  program
22
22
  .command('init', { isDefault: true })
23
23
  .description('Initialize a new Authrim setup')
@@ -1 +1 @@
1
- {"version":3,"file":"ui.d.ts","sourceRoot":"","sources":["../../src/web/ui.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,wBAAgB,eAAe,CAAC,YAAY,CAAC,EAAE,MAAM,EAAE,UAAU,CAAC,EAAE,OAAO,GAAG,MAAM,CA+9EnF"}
1
+ {"version":3,"file":"ui.d.ts","sourceRoot":"","sources":["../../src/web/ui.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,wBAAgB,eAAe,CAAC,YAAY,CAAC,EAAE,MAAM,EAAE,UAAU,CAAC,EAAE,OAAO,GAAG,MAAM,CAw9EnF"}
package/dist/web/ui.js CHANGED
@@ -919,9 +919,9 @@ export function getHtmlTemplate(sessionToken, manageOnly) {
919
919
  <h4>🌐 API / Issuer Domain</h4>
920
920
 
921
921
  <div class="form-group" style="margin-bottom: 0.75rem;">
922
- <label for="base-domain">Base Domain <span style="color: var(--error);">*</span></label>
922
+ <label for="base-domain">Base Domain</label>
923
923
  <input type="text" id="base-domain" placeholder="authrim.com">
924
- <small style="color: var(--text-muted)">Your domain for Authrim (e.g., authrim.com)</small>
924
+ <small style="color: var(--text-muted)">Custom domain for Authrim. Leave empty to use workers.dev</small>
925
925
  </div>
926
926
 
927
927
  <!-- Naked Domain Option -->
@@ -1495,6 +1495,7 @@ export function getHtmlTemplate(sessionToken, manageOnly) {
1495
1495
  document.getElementById('advanced-options').classList.add('hidden');
1496
1496
  setStep(2);
1497
1497
  showSection('config');
1498
+ updatePreview();
1498
1499
  });
1499
1500
 
1500
1501
  document.getElementById('mode-custom').addEventListener('click', () => {
@@ -1504,6 +1505,7 @@ export function getHtmlTemplate(sessionToken, manageOnly) {
1504
1505
  document.getElementById('advanced-options').classList.remove('hidden');
1505
1506
  setStep(2);
1506
1507
  showSection('config');
1508
+ updatePreview();
1507
1509
  });
1508
1510
 
1509
1511
  document.getElementById('btn-back-top').addEventListener('click', () => {
@@ -1597,11 +1599,8 @@ export function getHtmlTemplate(sessionToken, manageOnly) {
1597
1599
  document.getElementById('preview-issuer').textContent = 'https://' + tenantName + '.' + baseDomain;
1598
1600
  }
1599
1601
  } else {
1600
- if (nakedDomain) {
1601
- document.getElementById('preview-issuer').textContent = 'https://{base-domain}';
1602
- } else {
1603
- document.getElementById('preview-issuer').textContent = 'https://{tenant}.{base-domain}';
1604
- }
1602
+ // No custom domain - use workers.dev
1603
+ document.getElementById('preview-issuer').textContent = 'https://' + env + '-ar-router.workers.dev';
1605
1604
  }
1606
1605
 
1607
1606
  // Login UI - check if component is enabled (in custom mode)
@@ -1728,14 +1727,8 @@ export function getHtmlTemplate(sessionToken, manageOnly) {
1728
1727
  const loginDomain = document.getElementById('login-domain').value.trim();
1729
1728
  const adminDomain = document.getElementById('admin-domain').value.trim();
1730
1729
 
1731
- // Validate base domain is required
1732
- if (!baseDomain) {
1733
- alert('Base domain is required');
1734
- return;
1735
- }
1736
-
1737
- // API domain = base domain (wildcard subdomain routing)
1738
- const apiDomain = baseDomain;
1730
+ // API domain = base domain or null (workers.dev fallback)
1731
+ const apiDomain = baseDomain || null;
1739
1732
 
1740
1733
  config = {
1741
1734
  env,
@@ -1745,9 +1738,9 @@ export function getHtmlTemplate(sessionToken, manageOnly) {
1745
1738
  tenant: {
1746
1739
  name: nakedDomain ? null : tenantName, // null for naked domain
1747
1740
  displayName: tenantDisplayName,
1748
- multiTenant: true, // Always multi-tenant capable
1749
- baseDomain: baseDomain,
1750
- nakedDomain: nakedDomain,
1741
+ multiTenant: baseDomain ? true : false, // Only multi-tenant with custom domain
1742
+ baseDomain: baseDomain || undefined,
1743
+ nakedDomain: baseDomain ? nakedDomain : false,
1751
1744
  },
1752
1745
  components: {
1753
1746
  api: true,
@@ -1 +1 @@
1
- {"version":3,"file":"ui.js","sourceRoot":"","sources":["../../src/web/ui.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,MAAM,UAAU,eAAe,CAAC,YAAqB,EAAE,UAAoB;IACzE,gDAAgD;IAChD,MAAM,SAAS,GAAG,YAAY,CAAC,CAAC,CAAC,YAAY,CAAC,OAAO,CAAC,SAAS,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;IAC1E,MAAM,cAAc,GAAG,UAAU,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,CAAC;IAErD,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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
1
  {
2
2
  "name": "@authrim/setup",
3
- "version": "0.1.27",
3
+ "version": "0.1.28",
4
4
  "description": "CLI tool for setting up Authrim OIDC Provider on Cloudflare Workers",
5
5
  "type": "module",
6
6
  "bin": {