MCPcopy Create free account
hub / github.com/rilldata/rill / GithubRetryAuthUI

Method GithubRetryAuthUI

admin/urls.go:306–318  ·  view source on GitHub ↗

GithubRetryAuthUI returns the page in the Rill frontend for retrying the Github auth flow.

(remote, username, redirect string)

Source from the content-addressed store, hash-verified

304
305// GithubRetryAuthUI returns the page in the Rill frontend for retrying the Github auth flow.
306func (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.
321func (u *URLs) Asset(assetID string) string {

Callers 3

GetGithubRepoStatusMethod · 0.80
githubConnectCallbackMethod · 0.80
githubAuthCallbackMethod · 0.80

Calls 2

MustJoinURLFunction · 0.92
MustWithQueryFunction · 0.92

Tested by

no test coverage detected