Skip to content

Configure Portal authentication at container startup - #1542

Open
Naveen Chatlapalli (1aifanatic) wants to merge 1 commit into
microsoft:mainfrom
1aifanatic:fix/1450-portal-runtime-auth
Open

Naveen Chatlapalli (1aifanatic) wants to merge 1 commit into
microsoft:mainfrom
1aifanatic:fix/1450-portal-runtime-auth

Conversation

@1aifanatic

Copy link
Copy Markdown

Closes #1450.

The Portal entrypoint now writes public OAuth client ID, authority, and comma-separated scopes into /config.js with byte-safe JavaScript escaping. A complete runtime set overrides baked-in VITE_AUTH_* values; when no runtime set is supplied, existing build and local-dev settings apply. Partial or empty runtime sets keep the existing not-configured gate. The gate message and Storybook description now explain both configuration paths.

Validation: 19 Portal auth tests passed; portal TypeScript check passed. The POSIX entrypoint execution test is included for CI and skipped on this Windows host because /bin/sh is unavailable.

This branch has not been deployed

No deployments
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.

Support runtime Portal authentication configuration

1 participant