mirror of
https://github.com/coder/coder.git
synced 2025-07-15 22:20:27 +00:00
feat: Add OIDC authentication (#3314)
* feat: Add OIDC authentication * Extract username into a separate package and add OIDC tests * Add test case for invalid tokens * Add test case for username as email * Add OIDC to the frontend * Improve comments from self-review * Add authentication docs * Add telemetry * Update docs/install/auth.md Co-authored-by: Ammar Bandukwala <ammar@ammar.io> * Update docs/install/auth.md Co-authored-by: Ammar Bandukwala <ammar@ammar.io> * Remove username package Co-authored-by: Ammar Bandukwala <ammar@ammar.io>
This commit is contained in:
7
coderd/database/migrations/000032_oidc.down.sql
Normal file
7
coderd/database/migrations/000032_oidc.down.sql
Normal file
@ -0,0 +1,7 @@
|
||||
CREATE TYPE old_login_type AS ENUM (
|
||||
'password',
|
||||
'github'
|
||||
);
|
||||
ALTER TABLE api_keys ALTER COLUMN login_type TYPE old_login_type USING (login_type::text::old_login_type);
|
||||
DROP TYPE login_type;
|
||||
ALTER TYPE old_login_type RENAME TO login_type;
|
8
coderd/database/migrations/000032_oidc.up.sql
Normal file
8
coderd/database/migrations/000032_oidc.up.sql
Normal file
@ -0,0 +1,8 @@
|
||||
CREATE TYPE new_login_type AS ENUM (
|
||||
'password',
|
||||
'github',
|
||||
'oidc'
|
||||
);
|
||||
ALTER TABLE api_keys ALTER COLUMN login_type TYPE new_login_type USING (login_type::text::new_login_type);
|
||||
DROP TYPE login_type;
|
||||
ALTER TYPE new_login_type RENAME TO login_type;
|
Reference in New Issue
Block a user