mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08: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:
co-authored by
Ammar Bandukwala
parent
8b17bf98ea
commit
3d0febdd90
@@ -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;
|
||||
@@ -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