GithubAuth returns the URL that starts the Github auth redirects.
(remote string)
| 251 | |
| 252 | // GithubAuth returns the URL that starts the Github auth redirects. |
| 253 | func (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. |
| 262 | func (u *URLs) GithubAuthCallback() string { |
no test coverage detected