MCPcopy Index your code
hub / github.com/coder/coder / Login

Method Login

coderd/coderdtest/oidctest/helper.go:46–51  ·  view source on GitHub ↗

Login just helps by making an unauthenticated client and logging in with the given claims. All Logins should be unauthenticated, so this is a convenience method.

(t *testing.T, idTokenClaims jwt.MapClaims)

Source from the content-addressed store, hash-verified

44// the given claims. All Logins should be unauthenticated, so this is a
45// convenience method.
46func (h *LoginHelper) Login(t *testing.T, idTokenClaims jwt.MapClaims) (*codersdk.Client, *http.Response) {
47 t.Helper()
48 unauthenticatedClient := codersdk.New(h.client.URL)
49
50 return h.fake.Login(t, unauthenticatedClient, idTokenClaims)
51}
52
53// AttemptLogin does not assert a successful login.
54func (h *LoginHelper) AttemptLogin(t *testing.T, idTokenClaims jwt.MapClaims) (*codersdk.Client, *http.Response) {

Callers 1

TestAzureAKPKIWithCoderdFunction · 0.95

Calls 2

NewFunction · 0.92
HelperMethod · 0.65

Tested by 1

TestAzureAKPKIWithCoderdFunction · 0.76