MCPcopy Create free account
hub / github.com/cli/cli / getCallbackURI

Function getCallbackURI

internal/authflow/flow.go:125–133  ·  view source on GitHub ↗
(oauthHost string)

Source from the content-addressed store, hash-verified

123}
124
125func getCallbackURI(oauthHost string) string {
126 callbackURI := "http://127.0.0.1/callback"
127 if ghauth.IsEnterprise(oauthHost) {
128 // the OAuth app on Enterprise hosts is still registered with a legacy callback URL
129 // see https://github.com/cli/cli/pull/222, https://github.com/cli/cli/pull/650
130 callbackURI = "http://localhost/"
131 }
132 return callbackURI
133}
134
135type cfg struct {
136 token string

Callers 2

AuthFlowFunction · 0.85
Test_getCallbackURIFunction · 0.85

Calls

no outgoing calls

Tested by 1

Test_getCallbackURIFunction · 0.68