MCPcopy Index your code
hub / github.com/coder/coder / formatDeviceCodeURL

Method formatDeviceCodeURL

coderd/externalauth/externalauth.go:802–812  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

800}
801
802func (c *DeviceAuth) formatDeviceCodeURL() (string, error) {
803 cod, err := url.Parse(c.CodeURL)
804 if err != nil {
805 return "", err
806 }
807 cod.RawQuery = url.Values{
808 "client_id": {c.ClientID},
809 "scope": c.Scopes,
810 }.Encode()
811 return cod.String(), nil
812}
813
814// ConvertConfig converts the SDK configuration entry format
815// to the parsed and ready-to-consume in coderd provider type.

Callers 1

AuthorizeDeviceMethod · 0.95

Calls 3

EncodeMethod · 0.80
ParseMethod · 0.65
StringMethod · 0.45

Tested by

no test coverage detected