()
| 800 | } |
| 801 | |
| 802 | func (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. |
no test coverage detected