GithubRetryAuthUI returns the page in the Rill frontend for retrying the Github auth flow.
(remote, username, redirect string)
| 304 | |
| 305 | // GithubRetryAuthUI returns the page in the Rill frontend for retrying the Github auth flow. |
| 306 | func (u *URLs) GithubRetryAuthUI(remote, username, redirect string) string { |
| 307 | res := urlutil.MustJoinURL(u.frontend, "/-/github/connect/retry-auth") // NOTE: Always using the primary frontend URL. |
| 308 | if remote != "" { |
| 309 | res = urlutil.MustWithQuery(res, map[string]string{"remote": remote}) |
| 310 | } |
| 311 | if username != "" { |
| 312 | res = urlutil.MustWithQuery(res, map[string]string{"githubUsername": username}) |
| 313 | } |
| 314 | if redirect != "" { |
| 315 | res = urlutil.MustWithQuery(res, map[string]string{"redirect": redirect}) |
| 316 | } |
| 317 | return res |
| 318 | } |
| 319 | |
| 320 | // Asset creates a URL for downloading the user-uploaded asset with the given ID. |
| 321 | func (u *URLs) Asset(assetID string) string { |
no test coverage detected