Thomas Kosiewski
c65013384a
refactor: move OAuth2 provider code to dedicated package ( #18746 )
...
# Refactor OAuth2 Provider Code into Dedicated Package
This PR refactors the OAuth2 provider functionality by moving it from the main `coderd` package into a dedicated `oauth2provider` package. The change improves code organization and maintainability without changing functionality.
Key changes:
- Created a new `oauth2provider` package to house all OAuth2 provider-related code
- Moved existing OAuth2 provider functionality from `coderd/identityprovider` to the new package
- Refactored handler functions to follow a consistent pattern of returning `http.HandlerFunc` instead of being handlers directly
- Split large files into smaller, more focused files organized by functionality:
- `app_secrets.go` - Manages OAuth2 application secrets
- `apps.go` - Handles OAuth2 application CRUD operations
- `authorize.go` - Implements the authorization flow
- `metadata.go` - Provides OAuth2 metadata endpoints
- `registration.go` - Handles dynamic client registration
- `revoke.go` - Implements token revocation
- `secrets.go` - Manages secret generation and validation
- `tokens.go` - Handles token issuance and validation
This refactoring improves code organization and makes the OAuth2 provider functionality more maintainable while preserving all existing behavior.
2025-07-03 20:24:45 +02:00
..
2025-06-25 17:36:23 +01:00
2025-06-20 13:16:55 -06:00
2025-07-03 20:09:18 +02:00
2025-06-20 13:16:55 -06:00
2024-09-18 21:47:53 +10:00
2025-07-02 15:05:42 +00:00
2025-06-24 07:36:39 -05:00
2023-10-30 19:44:29 +00:00
2025-06-20 13:16:55 -06:00
2025-07-02 09:44:01 -05:00
2025-05-27 16:05:03 +04:00
2025-07-03 19:13:13 +02:00
2025-06-24 19:01:29 +10:00
2025-07-03 08:33:45 -05:00
2025-04-16 10:37:09 -06:00
2025-06-26 12:28:00 -06:00
2025-07-01 13:50:37 -06:00
2023-08-18 18:55:43 +00:00
2025-06-20 13:16:55 -06:00
2025-07-03 08:33:45 -05:00
2025-07-03 20:09:18 +02:00
2025-06-26 12:28:00 -06:00
2025-06-20 13:16:55 -06:00
2025-06-20 13:16:55 -06:00
2025-07-03 19:27:41 +02:00
2025-06-20 13:16:55 -06:00
2025-07-03 11:28:00 -06:00
2025-07-03 20:24:45 +02:00
2025-05-19 12:05:35 +04:00
2024-05-13 14:37:51 -04:00
2025-06-20 13:16:55 -06:00
2025-06-20 13:16:55 -06:00
2025-06-20 13:16:55 -06:00
2025-06-24 10:36:37 +00:00
2024-07-25 16:08:12 -05:00
2025-06-17 09:00:32 -08:00
2025-03-18 00:02:47 +01:00
2025-06-27 12:05:34 +01:00
2025-06-20 13:16:55 -06:00
2025-01-30 10:52:50 -07:00
2025-06-20 13:16:55 -06:00
2025-07-01 07:31:14 +02:00
2025-06-26 15:54:52 +02:00
2025-06-23 12:35:15 -05:00
2025-06-20 13:16:55 -06:00
2025-06-20 13:16:55 -06:00
2025-06-20 13:16:55 -06:00
2025-06-23 12:35:15 -05:00
2025-06-26 12:28:00 -06:00
2025-06-23 09:12:37 +01:00
2025-06-20 13:16:55 -06:00
2025-07-03 08:33:45 -05:00
2025-03-31 10:55:44 -04:00
2024-11-18 14:09:22 +04:00
2025-06-24 13:06:02 +02:00
2025-06-24 13:06:02 +02:00
2025-06-06 17:36:30 +02:00
2025-06-06 17:36:30 +02:00
2023-08-18 18:55:43 +00:00
2024-08-01 12:07:19 -05:00
2025-06-20 13:16:55 -06:00
2025-07-01 07:31:14 +02:00
2025-06-20 13:16:55 -06:00
2025-06-16 13:40:45 +00:00
2023-08-18 18:55:43 +00:00
2025-06-20 13:16:55 -06:00
2025-01-08 15:38:37 +00:00
2025-07-03 20:24:45 +02:00
2023-08-18 18:55:43 +00:00
2025-04-09 09:21:17 +01:00
2025-04-09 09:21:17 +01:00
2024-02-27 16:33:32 +00:00
2025-06-25 13:03:32 +00:00
2024-06-11 12:22:59 +10:00
2025-04-22 16:21:15 +00:00
2025-06-24 09:14:41 +01:00
2025-05-15 15:32:52 +01:00
2024-09-10 15:58:50 +01:00
2024-11-08 18:24:12 +11:00
2024-11-08 18:24:12 +11:00
2025-05-15 15:32:52 +01:00
2025-05-15 15:32:52 +01:00
2025-06-20 13:16:55 -06:00
2025-06-20 13:16:55 -06:00
2025-06-12 13:50:50 +03:00
2025-06-20 13:16:55 -06:00
2025-06-20 13:16:55 -06:00
2025-03-26 01:56:39 -05:00
2023-06-06 10:26:13 -05:00
2025-07-03 19:27:41 +02:00
2025-04-28 14:51:33 -06:00
2025-04-28 14:51:33 -06:00
2025-03-05 22:43:18 +01:00
2025-03-05 22:43:18 +01:00
2025-07-03 18:33:47 +02:00
2025-07-02 19:14:54 +02:00
2025-07-03 18:33:47 +02:00
2025-07-03 18:33:47 +02:00
2025-07-03 20:24:45 +02:00
2025-07-03 20:24:45 +02:00
2024-07-25 16:07:53 -05:00
2024-08-28 13:24:28 -05:00
2025-06-20 13:16:55 -06:00
2024-06-28 07:38:04 -05:00
2025-06-23 15:04:09 -05:00
2025-06-20 13:00:39 -05:00
2025-06-24 12:19:19 +02:00
2025-06-24 12:19:19 +02:00
2025-02-26 21:06:51 +02:00
2025-02-18 14:14:30 +00:00
2025-06-20 13:16:55 -06:00
2025-05-19 16:05:39 +01:00
2025-06-12 13:50:50 +03:00
2024-07-25 16:07:53 -05:00
2025-06-16 13:40:45 +00:00
2025-06-20 13:16:55 -06:00
2025-04-15 10:55:30 +02:00
2025-07-02 09:44:01 -05:00
2025-07-02 09:44:01 -05:00
2025-06-20 13:16:55 -06:00
2025-06-24 10:36:37 +00:00
2025-06-20 13:16:55 -06:00
2023-08-18 18:55:43 +00:00
2025-06-20 13:16:55 -06:00
2025-04-08 14:15:14 -05:00
2025-06-20 13:16:55 -06:00
2025-06-16 13:40:45 +00:00
2025-03-27 10:03:53 +00:00
2025-03-27 10:03:53 +00:00
2024-10-22 09:20:54 -05:00
2025-06-18 14:07:53 +00:00
2025-06-26 11:41:57 +01:00
2025-06-26 11:41:57 +01:00
2025-04-16 10:37:09 -06:00
2025-05-20 17:07:50 +02:00
2025-05-29 12:15:47 +01:00
2025-06-20 13:16:55 -06:00
2024-10-25 17:14:35 +01:00
2025-06-23 14:07:42 +01:00
2025-06-24 16:33:21 +01:00
2024-01-18 09:44:05 -06:00
2024-01-18 09:44:05 -06:00
2025-02-20 05:09:26 +00:00
2023-08-18 18:55:43 +00:00
2025-06-24 10:36:37 +00:00
2025-06-23 15:08:18 -05:00
2025-04-16 10:37:09 -06:00
2025-03-26 01:56:39 -05:00