mirror of
https://github.com/coder/coder.git
synced 2025-07-06 15:41:45 +00:00
feat: add OAuth2 applications (#11197)
* Add database tables for OAuth2 applications These are applications that will be able to use OAuth2 to get an API key from Coder. * Add endpoints for managing OAuth2 applications These let you add, update, and remove OAuth2 applications. * Add frontend for managing OAuth2 applications
This commit is contained in:
21
coderd/database/migrations/testdata/fixtures/000182_oauth2_provider.up.sql
vendored
Normal file
21
coderd/database/migrations/testdata/fixtures/000182_oauth2_provider.up.sql
vendored
Normal file
@ -0,0 +1,21 @@
|
||||
INSERT INTO oauth2_provider_apps
|
||||
(id, created_at, updated_at, name, icon, callback_url)
|
||||
VALUES (
|
||||
'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11',
|
||||
'2023-06-15 10:23:54+00',
|
||||
'2023-06-15 10:23:54+00',
|
||||
'oauth2-app',
|
||||
'/some/icon.svg',
|
||||
'http://coder.com/oauth2/callback'
|
||||
);
|
||||
|
||||
INSERT INTO oauth2_provider_app_secrets
|
||||
(id, created_at, last_used_at, hashed_secret, display_secret, app_id)
|
||||
VALUES (
|
||||
'b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11',
|
||||
'2023-06-15 10:25:33+00',
|
||||
'2023-12-15 11:40:20+00',
|
||||
CAST('abcdefg' AS bytea),
|
||||
'fg',
|
||||
'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'
|
||||
);
|
Reference in New Issue
Block a user