mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
feat: add oauth2 token exchange (#12196)
Co-authored-by: Steven Masley <stevenmasley@gmail.com>
This commit is contained in:
+1
-1
@@ -583,7 +583,7 @@ func (api *API) userByName(rw http.ResponseWriter, r *http.Request) {
|
||||
func (api *API) userAutofillParameters(rw http.ResponseWriter, r *http.Request) {
|
||||
user := httpmw.UserParam(r)
|
||||
|
||||
p := httpapi.NewQueryParamParser().Required("template_id")
|
||||
p := httpapi.NewQueryParamParser().RequiredNotEmpty("template_id")
|
||||
templateID := p.UUID(r.URL.Query(), uuid.UUID{}, "template_id")
|
||||
p.ErrorExcessParams(r.URL.Query())
|
||||
if len(p.Errors) > 0 {
|
||||
|
||||
Reference in New Issue
Block a user