Skip to content

Ory#28

Open
philpotisk wants to merge 5 commits into
mainfrom
ory
Open

Ory#28
philpotisk wants to merge 5 commits into
mainfrom
ory

Conversation

@philpotisk

Copy link
Copy Markdown
Contributor

No description provided.

Two critical fixes for remote system deployment:

1. **Fixed superadmin creation endpoint URL**
   - Changed from org-scoped URL to base URL
   - Was using: https://org.domain.com/v1/superadmin/create-by-token (404)
   - Now uses: https://domain.com/v1/superadmin/create-by-token (works)
   - The superadmin endpoint is NOT organization-scoped

2. **Added self-signed certificate support**
   - Created walt-insecure.sh wrapper script
   - Sets NODE_TLS_REJECT_UNAUTHORIZED=0
   - Added comprehensive documentation in README
   - Three solutions: wrapper script, env var, or install CA cert

Changes:
- cli/src/commands/system.ts: Use buildBaseUrl instead of buildOrgUrl
- cli/walt-insecure.sh: New wrapper for self-signed cert systems
- cli/README.md: Added "Self-Signed Certificates" section

Usage for remote systems with self-signed certs:
  NODE_TLS_REJECT_UNAUTHORIZED=0 \
  ADMIN_EMAIL=admin@example.com \
  ADMIN_PASSWORD=*** \
  BASE_URL=https://remote-system.example.com \
  npx tsx walt.ts --setup-all

Tested against feature-wal-1039.enterprise.test.waltid.cloud
Add a new CLI command to create the OIDC Bridge service for Ory Hydra
integration. This command:

- Creates the oidc-bridge service with proper DC API verification setup
- Uses flow_type discriminator and NONE transform (fixes serialization errors)
- Supports environment variables for client configuration:
  - OIDC_BRIDGE_CLIENT_ID (default: ory-login-consent-app)
  - OIDC_BRIDGE_CLIENT_SECRET (default: ory-login-consent-secret)
  - OIDC_BRIDGE_REDIRECT_URI (default: http://login-app.localhost:3001/login/oidc-callback)
- Configures DC API with signed_request, encrypted_response, and expectedOrigins

Usage:
  npx tsx walt.ts --setup-login
  npx tsx walt.ts --setup-create-oidc-bridge

Related: Addresses issues documented in OIDC-BRIDGE-GUIDE.md
The ory branch config doesn't have iamBridgeIssuerUrl property.
Use ctx.orgBaseUrl which is already properly constructed with protocol and port.
@philpotisk philpotisk requested a review from hokorn June 17, 2026 08:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant