|
3 | 3 | [0m[38;5;239m([0m[38;5;237mhttps://sourcegraph.com/github.com/golang/oauth2/-/blob/clientcredentials/clientcredentials.go[0m[38;5;239m) |
4 | 4 | [0m[0m[38;5;23mgithub.com/golang/oauth2[0m › [38;5;69mclientcredentials.go[0m[38;5;2m (5 matches)[0m |
5 | 5 | [38;5;239m-------------------------------------------------------------------------------- |
6 | | -[0m [38;5;69m 50[0m[38;5;239m | [0mfunc (c *Config) Token(ctx context.Context) (*oauth2.Token, [38;5;0m[48;5;2merror[0m) { |
| 6 | +[0m [38;5;69m 50[0m[38;5;239m | [0mfunc (c *Config) Token(ctx context.Context) (*oauth2.Token, [38;5;0m[48;5;11merror[0m) { |
7 | 7 | [38;5;239m ------------------------------------------------------------------------------ |
8 | | -[0m [38;5;69m 82[0m[38;5;239m | [0mfunc (c *tokenSource) Token() (*oauth2.Token, [38;5;0m[48;5;2merror[0m) { |
| 8 | +[0m [38;5;69m 82[0m[38;5;239m | [0mfunc (c *tokenSource) Token() (*oauth2.Token, [38;5;0m[48;5;11merror[0m) { |
9 | 9 | [38;5;239m ------------------------------------------------------------------------------ |
10 | | -[0m [38;5;69m 91[0m[38;5;239m | [0m return nil, fmt.[38;5;0m[48;5;2mError[0mf("oauth2: cannot overwrite parameter %q", k) |
| 10 | +[0m [38;5;69m 91[0m[38;5;239m | [0m return nil, fmt.[38;5;0m[48;5;11mError[0mf("oauth2: cannot overwrite parameter %q", k) |
11 | 11 | [38;5;239m ------------------------------------------------------------------------------ |
12 | | -[0m [38;5;69m 97[0m[38;5;239m | [0m if rErr, ok := err.(*internal.Retrieve[38;5;0m[48;5;2mError[0m); ok { |
13 | | - [38;5;69m 98[0m[38;5;239m | [0m return nil, (*oauth2.Retrieve[38;5;0m[48;5;2mError[0m)(rErr) |
| 12 | +[0m [38;5;69m 97[0m[38;5;239m | [0m if rErr, ok := err.(*internal.Retrieve[38;5;0m[48;5;11mError[0m); ok { |
| 13 | + [38;5;69m 98[0m[38;5;239m | [0m return nil, (*oauth2.Retrieve[38;5;0m[48;5;11mError[0m)(rErr) |
14 | 14 | [38;5;239m-------------------------------------------------------------------------------- |
15 | 15 | [0m[38;5;239m([0m[38;5;237mhttps://sourcegraph.com/github.com/golang/oauth2/-/blob/clientcredentials/clientcredentials_test.go[0m[38;5;239m) |
16 | 16 | [0m[0m[38;5;23mgithub.com/golang/oauth2[0m › [38;5;69mclientcredentials_test.go[0m[38;5;2m (13 matches)[0m |
17 | 17 | [38;5;239m-------------------------------------------------------------------------------- |
18 | | -[0m [38;5;69m 27[0m[38;5;239m | [0m rt func(req *http.Request) (resp *http.Response, err [38;5;0m[48;5;2merror[0m) |
| 18 | +[0m [38;5;69m 27[0m[38;5;239m | [0m rt func(req *http.Request) (resp *http.Response, err [38;5;0m[48;5;11merror[0m) |
19 | 19 | [38;5;239m ------------------------------------------------------------------------------ |
20 | | -[0m [38;5;69m 30[0m[38;5;239m | [0mfunc (t *mockTransport) RoundTrip(req *http.Request) (resp *http.Response, err [38;5;0m[48;5;2merror[0m) { |
| 20 | +[0m [38;5;69m 30[0m[38;5;239m | [0mfunc (t *mockTransport) RoundTrip(req *http.Request) (resp *http.Response, err [38;5;0m[48;5;11merror[0m) { |
21 | 21 | [38;5;239m ------------------------------------------------------------------------------ |
22 | | -[0m [38;5;69m 37[0m[38;5;239m | [0m t.[38;5;0m[48;5;2mError[0mf("authenticate client request URL = %q; want %q", r.URL, "/token") |
| 22 | +[0m [38;5;69m 37[0m[38;5;239m | [0m t.[38;5;0m[48;5;11mError[0mf("authenticate client request URL = %q; want %q", r.URL, "/token") |
23 | 23 | [38;5;239m ------------------------------------------------------------------------------ |
24 | | -[0m [38;5;69m 41[0m[38;5;239m | [0m t.[38;5;0m[48;5;2mError[0mf("Unexpected authorization header, %v is found.", headerAuth) |
| 24 | +[0m [38;5;69m 41[0m[38;5;239m | [0m t.[38;5;0m[48;5;11mError[0mf("Unexpected authorization header, %v is found.", headerAuth) |
25 | 25 | [38;5;239m ------------------------------------------------------------------------------ |
26 | | -[0m [38;5;69m 44[0m[38;5;239m | [0m t.[38;5;0m[48;5;2mError[0mf("Content-Type header = %q; want %q", got, want) |
| 26 | +[0m [38;5;69m 44[0m[38;5;239m | [0m t.[38;5;0m[48;5;11mError[0mf("Content-Type header = %q; want %q", got, want) |
27 | 27 | [38;5;239m ------------------------------------------------------------------------------ |
28 | | -[0m [38;5;69m 51[0m[38;5;239m | [0m t.[38;5;0m[48;5;2mError[0mf("failed reading request body: %s.", err) |
| 28 | +[0m [38;5;69m 51[0m[38;5;239m | [0m t.[38;5;0m[48;5;11mError[0mf("failed reading request body: %s.", err) |
29 | 29 | [38;5;239m ------------------------------------------------------------------------------ |
30 | | -[0m [38;5;69m 54[0m[38;5;239m | [0m t.[38;5;0m[48;5;2mError[0mf("payload = %q; want %q", string(body), "grant_type=client_credentials&scope=scope1+scope2") |
| 30 | +[0m [38;5;69m 54[0m[38;5;239m | [0m t.[38;5;0m[48;5;11mError[0mf("payload = %q; want %q", string(body), "grant_type=client_credentials&scope=scope1+scope2") |
31 | 31 | [38;5;239m ------------------------------------------------------------------------------ |
32 | | -[0m [38;5;69m 63[0m[38;5;239m | [0m t.[38;5;0m[48;5;2mError[0m(err) |
| 32 | +[0m [38;5;69m 63[0m[38;5;239m | [0m t.[38;5;0m[48;5;11mError[0m(err) |
33 | 33 | [38;5;239m ------------------------------------------------------------------------------ |
34 | | -[0m [38;5;69m 69[0m[38;5;239m | [0m t.[38;5;0m[48;5;2mError[0mf("Access token = %q; want %q", tok.AccessToken, "90d64460d14870c08c81352a05dedd3465940a7c") |
| 34 | +[0m [38;5;69m 69[0m[38;5;239m | [0m t.[38;5;0m[48;5;11mError[0mf("Access token = %q; want %q", tok.AccessToken, "90d64460d14870c08c81352a05dedd3465940a7c") |
35 | 35 | [38;5;239m ------------------------------------------------------------------------------ |
36 | | -[0m [38;5;69m 72[0m[38;5;239m | [0m t.[38;5;0m[48;5;2mError[0mf("token type = %q; want %q", tok.TokenType, "bearer") |
| 36 | +[0m [38;5;69m 72[0m[38;5;239m | [0m t.[38;5;0m[48;5;11mError[0mf("token type = %q; want %q", tok.TokenType, "bearer") |
37 | 37 | [38;5;239m ------------------------------------------------------------------------------ |
38 | | -[0m [38;5;69m 82[0m[38;5;239m | [0m t.[38;5;0m[48;5;2mError[0mf("Unexpected token refresh request URL, %v is found.", r.URL) |
| 38 | +[0m [38;5;69m 82[0m[38;5;239m | [0m t.[38;5;0m[48;5;11mError[0mf("Unexpected token refresh request URL, %v is found.", r.URL) |
39 | 39 | [38;5;239m ------------------------------------------------------------------------------ |
40 | | -[0m [38;5;69m 86[0m[38;5;239m | [0m t.[38;5;0m[48;5;2mError[0mf("Unexpected Content-Type header, %v is found.", headerContentType) |
| 40 | +[0m [38;5;69m 86[0m[38;5;239m | [0m t.[38;5;0m[48;5;11mError[0mf("Unexpected Content-Type header, %v is found.", headerContentType) |
41 | 41 | [38;5;239m ------------------------------------------------------------------------------ |
42 | | -[0m [38;5;69m 90[0m[38;5;239m | [0m t.[38;5;0m[48;5;2mError[0mf("Unexpected refresh token payload, %v is found.", string(body)) |
| 42 | +[0m [38;5;69m 90[0m[38;5;239m | [0m t.[38;5;0m[48;5;11mError[0mf("Unexpected refresh token payload, %v is found.", string(body)) |
43 | 43 | [38;5;239m-------------------------------------------------------------------------------- |
44 | 44 | [0m[38;5;239m([0m[38;5;237mhttps://sourcegraph.com/github.com/golang/oauth2/-/blob/google/appengine.go[0m[38;5;239m) |
45 | 45 | [0m[0m[38;5;23mgithub.com/golang/oauth2[0m › [38;5;69mappengine.go[0m[38;5;2m (2 matches)[0m |
46 | 46 | [38;5;239m-------------------------------------------------------------------------------- |
47 | | -[0m [38;5;69m 21[0m[38;5;239m | [0mvar appengineTokenFunc func(c context.Context, scopes ...string) (token string, expiry time.Time, err [38;5;0m[48;5;2merror[0m) |
| 47 | +[0m [38;5;69m 21[0m[38;5;239m | [0mvar appengineTokenFunc func(c context.Context, scopes ...string) (token string, expiry time.Time, err [38;5;0m[48;5;11merror[0m) |
48 | 48 | [38;5;239m ------------------------------------------------------------------------------ |
49 | | -[0m [38;5;69m 62[0m[38;5;239m | [0mfunc (ts *appEngineTokenSource) Token() (*oauth2.Token, [38;5;0m[48;5;2merror[0m) { |
| 49 | +[0m [38;5;69m 62[0m[38;5;239m | [0mfunc (ts *appEngineTokenSource) Token() (*oauth2.Token, [38;5;0m[48;5;11merror[0m) { |
50 | 50 | [38;5;239m-------------------------------------------------------------------------------- |
51 | 51 | [0m[38;5;239m([0m[38;5;237mhttps://sourcegraph.com/github.com/golang/oauth2/-/blob/google/go19.go[0m[38;5;239m) |
52 | 52 | [0m[0m[38;5;23mgithub.com/golang/oauth2[0m › [38;5;69mgo19.go[0m[38;5;2m (2 matches)[0m |
53 | 53 | [38;5;239m-------------------------------------------------------------------------------- |
54 | | -[0m [38;5;69m 47[0m[38;5;239m | [0mfunc FindDefaultCredentials(ctx context.Context, scopes ...string) (*Credentials, [38;5;0m[48;5;2merror[0m) { |
| 54 | +[0m [38;5;69m 47[0m[38;5;239m | [0mfunc FindDefaultCredentials(ctx context.Context, scopes ...string) (*Credentials, [38;5;0m[48;5;11merror[0m) { |
55 | 55 | [38;5;239m ------------------------------------------------------------------------------ |
56 | | -[0m [38;5;69m 55[0m[38;5;239m | [0mfunc CredentialsFromJSON(ctx context.Context, jsonData []byte, scopes ...string) (*Credentials, [38;5;0m[48;5;2merror[0m) { |
| 56 | +[0m [38;5;69m 55[0m[38;5;239m | [0mfunc CredentialsFromJSON(ctx context.Context, jsonData []byte, scopes ...string) (*Credentials, [38;5;0m[48;5;11merror[0m) { |
0 commit comments