(client *codersdk.Client, fake *FakeIDP)
| 28 | } |
| 29 | |
| 30 | func NewLoginHelper(client *codersdk.Client, fake *FakeIDP) *LoginHelper { |
| 31 | if client == nil { |
| 32 | panic("client must not be nil") |
| 33 | } |
| 34 | if fake == nil { |
| 35 | panic("fake must not be nil") |
| 36 | } |
| 37 | return &LoginHelper{ |
| 38 | fake: fake, |
| 39 | client: client, |
| 40 | } |
| 41 | } |
| 42 | |
| 43 | // Login just helps by making an unauthenticated client and logging in with |
| 44 | // the given claims. All Logins should be unauthenticated, so this is a |
no outgoing calls