You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -343,7 +339,7 @@ type JWTAuthenticator struct {
343
339
// Required to be unique.
344
340
URLstring`json:"url,omitempty"`
345
341
346
-
//If specified, overrides the URL used to fetch discovery information.
342
+
//discoveryURL if specified, overrides the URL used to fetch discovery information.
347
343
// Format must be https://url/path.
348
344
// Example:
349
345
// curl oidc.oidc-namespace (.discoveryURL field)
@@ -373,24 +369,24 @@ type JWTAuthenticator struct {
373
369
374
370
```go
375
371
typeClaimValidationRulestruct {
376
-
//Claim is the name of a required claim.
372
+
//claim is the name of a required claim.
377
373
// Same as --oidc-required-claim flag.
378
374
// Only string claims are supported.
379
375
// Mutually exclusive with expression and message.
380
376
// +optional
381
377
Claimstring`json:"claim"`
382
-
//RequiredValue is the value of a required claim.
378
+
//requiredValue is the value of a required claim.
383
379
// Same as --oidc-required-claim flag.
384
380
// Mutually exclusive with expression and message.
385
381
// +optional
386
382
RequiredValuestring`json:"requiredValue"`
387
383
388
-
//Expression is a logical expression that is written in CEL https://github.com/google/cel-go.
384
+
//expression is a logical expression that is written in CEL https://github.com/google/cel-go.
389
385
// Must return true for the validation to pass.
390
386
// Mutually exclusive with claim and requiredValue.
391
387
// +optional
392
388
Expressionstring`json:"expression"`
393
-
//Message customizes the returned error message when expression returns false.
389
+
//message customizes the returned error message when expression returns false.
394
390
// Mutually exclusive with claim and requiredValue.
395
391
// Note that messageExpression is explicitly not supported to avoid
396
392
// misconfigured expressions from leaking JWT payload contents.
@@ -421,7 +417,7 @@ type JWTAuthenticator struct {
421
417
422
418
```go
423
419
type ClaimMappings struct {
424
-
// Username represents an option for the username attribute.
420
+
// username represents an option for the username attribute.
425
421
// Claim must be a singular string claim.
426
422
// TODO: decide whether to support a distributed claim for username (what are we required to correlate between the data retrieved for distributed claims? sub? something else?). Limit distributed claim support to OIDC things with clientID validation?
427
423
// Expression must produce a string value.
@@ -431,55 +427,59 @@ type JWTAuthenticator struct {
431
427
// (3) if userName.expression is set instead, result of expression is used as-is without any implicit prefix
432
428
// (1) and (2) ensure backward compatibility with the --oidc-username-claim and --oidc-username-prefix flags
0 commit comments