@@ -28,8 +28,8 @@ type bootstrapAPIResponse struct {
2828 CaURL string `json:"url"`
2929 Fingerprint string `json:"fingerprint"`
3030 RedirectURL string `json:"redirect-url"`
31- Issuer string `json:"issuer"`
32- MinPasswordLength int `json:"min-password-length"`
31+ Provisioner string `json:"issuer,omitempty "`
32+ MinPasswordLength int `json:"min-password-length,omitempty "`
3333}
3434
3535// UseContext returns true if contexts should be used, false otherwise.
@@ -57,13 +57,13 @@ type bootstrapOption func(bc *bootstrapContext)
5757type bootstrapContext struct {
5858 defaultContextName string
5959 redirectURL string
60- issuer string
60+ provisioner string
6161 minPasswordLength int
6262}
6363
64- func withIssuer (issuer string ) bootstrapOption {
64+ func withProvisioner (issuer string ) bootstrapOption {
6565 return func (bc * bootstrapContext ) {
66- bc .issuer = issuer
66+ bc .provisioner = issuer
6767 }
6868}
6969
@@ -89,8 +89,8 @@ type bootstrapConfig struct {
8989 CA string `json:"ca-url"`
9090 Fingerprint string `json:"fingerprint"`
9191 Root string `json:"root"`
92- Redirect string `json:"redirect-url"`
93- Issuer string `json:"issuer ,omitempty"`
92+ Redirect string `json:"redirect-url,omitempty "`
93+ Provisioner string `json:"provisioner ,omitempty"`
9494 MinPasswordLength int `json:"min-password-length,omitempty"`
9595}
9696
@@ -175,8 +175,8 @@ func bootstrap(ctx *cli.Context, caURL, fingerprint string, opts ...bootstrapOpt
175175 if bc .minPasswordLength > 0 {
176176 bootConf .MinPasswordLength = bc .minPasswordLength
177177 }
178- if bc .issuer != "" {
179- bootConf .Issuer = bc .issuer
178+ if bc .provisioner != "" {
179+ bootConf .Provisioner = bc .provisioner
180180 }
181181 b , err := json .MarshalIndent (bootConf , "" , " " )
182182 if err != nil {
@@ -283,8 +283,8 @@ func BootstrapTeamAuthority(ctx *cli.Context, team, teamAuthority string) error
283283 withDefaultContextValues (teamAuthority + "." + team ),
284284 withRedirectURL (r .RedirectURL ),
285285 }
286- if r .Issuer != "" {
287- bootOpts = append (bootOpts , withIssuer (r .Issuer ))
286+ if r .Provisioner != "" {
287+ bootOpts = append (bootOpts , withProvisioner (r .Provisioner ))
288288 }
289289 if r .MinPasswordLength > 0 {
290290 bootOpts = append (bootOpts , withMinPasswordLength (r .MinPasswordLength ))
0 commit comments