Skip to content

Commit c216086

Browse files
authored
add AuthParams to token
1 parent 60484c9 commit c216086

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

utils/cautils/token_generator.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,12 @@ func generateOIDCToken(ctx *cli.Context, p *provisioner.OIDC) (string, error) {
124124
args := []string{"oauth", "--oidc", "--bare",
125125
"--provider", p.ConfigurationEndpoint,
126126
"--client-id", p.ClientID, "--client-secret", p.ClientSecret}
127+
if len(p.AuthParams) > 0 {
128+
for _, keyval := range p.AuthParams {
129+
args = append(args, "--auth-param")
130+
args = append(args, keyval)
131+
}
132+
}
127133
if ctx.Bool("console") {
128134
args = append(args, "--console")
129135
}

0 commit comments

Comments
 (0)