MCPcopy Index your code
hub / github.com/cloudflare/cloudflared / FetchTokenWithRedirect

Function FetchTokenWithRedirect

token/token.go:269–271  ·  view source on GitHub ↗

FetchTokenWithRedirect will either load a stored token or generate a new one it appends the full url as the redirect URL to the access cli request if opening the browser

(appURL *url.URL, appInfo *AppInfo, autoClose bool, isFedramp bool, log *zerolog.Logger)

Source from the content-addressed store, hash-verified

267// FetchTokenWithRedirect will either load a stored token or generate a new one
268// it appends the full url as the redirect URL to the access cli request if opening the browser
269func FetchTokenWithRedirect(appURL *url.URL, appInfo *AppInfo, autoClose bool, isFedramp bool, log *zerolog.Logger) (string, error) {
270 return getToken(appURL, appInfo, false, autoClose, isFedramp, log)
271}
272
273// FetchToken will either load a stored token or generate a new one
274// it appends the host of the appURL as the redirect URL to the access cli request if opening the browser

Callers 2

BuildAccessRequestFunction · 0.92
sshGenFunction · 0.92

Calls 1

getTokenFunction · 0.85

Tested by

no test coverage detected