mirror of
https://github.com/coder/coder.git
synced 2026-10-28 02:42:54 +08:00
feat: Validate Git tokens before consuming them (#5167)
* feat: Validate Git tokens before consuming them This works the exact same way that the Git credential manager does. It ensures the user token is valid before returning it to the client. It's been manually tested on GitHub, GitLab, and BitBucket. * Fix requested changes
This commit is contained in:
@@ -355,6 +355,7 @@ export interface GitAuthConfig {
|
||||
readonly client_id: string
|
||||
readonly auth_url: string
|
||||
readonly token_url: string
|
||||
readonly validate_url: string
|
||||
readonly regex: string
|
||||
readonly no_refresh: boolean
|
||||
readonly scopes: string[]
|
||||
|
||||
Reference in New Issue
Block a user