OIBDeployer
OIBDeployer copied to clipboard
Use tenant specific endpoint
This pull request updates the authentication configuration to support both single-tenant and multi-tenant Entra ID (Azure AD) scenarios, improves environment variable flexibility, and updates documentation for clarity. It also adds a new CNAME for deployment.
Authentication configuration and environment variables:
- Updated
src/utils/config.jsto useVITE_ENTRA_CLIENT_IDas the primary client ID, withVITE_CLIENT_IDas a fallback for backward compatibility. The authority URL now usesVITE_ENTRA_TENANT_IDif set, enabling single-tenant support, or defaults tocommonfor multi-tenant.
Documentation updates:
- Updated the
README.mdto reflect the new environment variables, clarifying the use ofVITE_ENTRA_CLIENT_ID,VITE_ENTRA_TENANT_ID, and the optionalVITE_CLIENT_IDfor backward compatibility. The documentation now explains the purpose of each variable and when to use them. [1] [2]
@SkipToTheEndpoint Thanks for an interesting idea. I took it for a spin and realized that the documentation had a couple of issues:
- The variable name the app is looking for is VITE_ENTRA_CLIENT_ID, contrary to what the documentation stated (VITE_CLIENT_ID).
- Turns out you can't use a single tenant application without having to provide a tenant id, so I added the new environment variable VITE_ENTRA_TENANT_ID
- The Github deploy action to Github pages is problematic, since for some reason Github seems to want to serve the code as text rather than Javascript, but I kinda gave up on that.
Thanks again.