mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
* feat: add github device flow for authentication This will allow us to add a GitHub OAuth provider out-of-the-box to reduce setup requirements. * Improve askpass view * Add routes to improve clarity of git auth * Redesign the git auth page * Refactor to add a page view * Fix sideways layout * Remove legacy notify * Fix git auth redirects * Add E2E tests * Fix route documentation * Fix imports * Remove unused imports * Fix E2E web test * Fix friendly message appearance * Fix layout shifting for full-screen sign-in * Fix height going to 100% * Fix comments
24 lines
615 B
TypeScript
24 lines
615 B
TypeScript
// Default port from the server
|
|
export const defaultPort = 3000
|
|
|
|
// Credentials for the first user
|
|
export const username = "admin"
|
|
export const password = "SomeSecurePassword!"
|
|
export const email = "admin@coder.com"
|
|
|
|
export const gitAuth = {
|
|
deviceProvider: "device",
|
|
webProvider: "web",
|
|
// These ports need to be hardcoded so that they can be
|
|
// used in `playwright.config.ts` to set the environment
|
|
// variables for the server.
|
|
devicePort: 50515,
|
|
webPort: 50516,
|
|
|
|
authPath: "/auth",
|
|
tokenPath: "/token",
|
|
codePath: "/code",
|
|
validatePath: "/validate",
|
|
installationsPath: "/installations",
|
|
}
|