MCPcopy Create free account
hub / github.com/auth0/auth0-cli / TestLogin

Method TestLogin

internal/display/test.go:18–32  ·  view source on GitHub ↗
(u *authutil.UserInfo, t *authutil.TokenResponse, clientID string)

Source from the content-addressed store, hash-verified

16}
17
18func (r *Renderer) TestLogin(u *authutil.UserInfo, t *authutil.TokenResponse, clientID string) {
19 r.Heading("user metadata and token")
20
21 data := &userInfoAndTokens{UserInfo: u, Tokens: t}
22 r.JSONResult(data)
23
24 r.Newline()
25 r.Newline()
26 r.Infof(
27 "%s Login flow is working! If this is the first time you are testing the login flow for this "+
28 "application, consider downloading and running a quickstart next by running %s",
29 ansi.Faint("Hint:"),
30 fmt.Sprintf("`auth0 quickstarts download %s`", clientID),
31 )
32}
33
34func (r *Renderer) TestToken(client *management.Client, t *authutil.TokenResponse) {
35 r.Heading(fmt.Sprintf("token for %s", ansi.Bold(client.GetName())))

Callers 1

testLoginCmdFunction · 0.80

Calls 5

HeadingMethod · 0.95
JSONResultMethod · 0.95
NewlineMethod · 0.95
InfofMethod · 0.95
FaintFunction · 0.92

Tested by

no test coverage detected