MCPcopy Index your code
hub / github.com/rilldata/rill / GithubAuth

Method GithubAuth

admin/urls.go:253–259  ·  view source on GitHub ↗

GithubAuth returns the URL that starts the Github auth redirects.

(remote string)

Source from the content-addressed store, hash-verified

251
252// GithubAuth returns the URL that starts the Github auth redirects.
253func (u *URLs) GithubAuth(remote string) string {
254 res := urlutil.MustJoinURL(u.external, "/github/auth/login") // NOTE: Always using the primary external URL.
255 if remote != "" {
256 res = urlutil.MustWithQuery(res, map[string]string{"remote": remote})
257 }
258 return res
259}
260
261// GithubAuthCallback returns the URL for the Github auth callback.
262func (u *URLs) GithubAuthCallback() string {

Callers 2

GetGithubUserStatusMethod · 0.80
GetGithubRepoStatusMethod · 0.80

Calls 2

MustJoinURLFunction · 0.92
MustWithQueryFunction · 0.92

Tested by

no test coverage detected