We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6e69f90 commit 8c2fc33Copy full SHA for 8c2fc33
coderd/userauth.go
@@ -34,6 +34,15 @@ import (
34
35
// postConvertLoginType replies with an oauth state token capable of converting
36
// the user to an oauth user.
37
+//
38
+// @Summary Convert user from password to oauth authentication
39
+// @ID convert-login-type
40
+// @Accept json
41
+// @Produce json
42
+// @Tags Authorization
43
+// @Param request body codersdk.ConvertLoginRequest true "Convert request"
44
+// @Success 201 {object} codersdk.OauthConversionResponse
45
+// @Router /users/convert-login [post]
46
func (api *API) postConvertLoginType(rw http.ResponseWriter, r *http.Request) {
47
var (
48
ctx = r.Context()
0 commit comments