@@ -96,19 +96,19 @@ func pathRole(b *jwtAuthBackend) *framework.Path {
96
96
},
97
97
"expiration_leeway" : {
98
98
Type : framework .TypeSignedDurationSecond ,
99
- Description : `Duration in seconds of leeway when validating expiration of a token to account for clock skew.
99
+ Description : `Duration in seconds of leeway when validating expiration of a token to account for clock skew.
100
100
Defaults to 150 (2.5 minutes) if set to 0 and can be disabled if set to -1.` ,
101
101
Default : claimDefaultLeeway ,
102
102
},
103
103
"not_before_leeway" : {
104
104
Type : framework .TypeSignedDurationSecond ,
105
- Description : `Duration in seconds of leeway when validating not before values of a token to account for clock skew.
105
+ Description : `Duration in seconds of leeway when validating not before values of a token to account for clock skew.
106
106
Defaults to 150 (2.5 minutes) if set to 0 and can be disabled if set to -1.` ,
107
107
Default : claimDefaultLeeway ,
108
108
},
109
109
"clock_skew_leeway" : {
110
110
Type : framework .TypeSignedDurationSecond ,
111
- Description : `Duration in seconds of leeway when validating all claims to account for clock skew.
111
+ Description : `Duration in seconds of leeway when validating all claims to account for clock skew.
112
112
Defaults to 60 (1 minute) if set to 0 and can be disabled if set to -1.` ,
113
113
Default : jwt .DefaultLeeway ,
114
114
},
@@ -120,10 +120,6 @@ Defaults to 60 (1 minute) if set to 0 and can be disabled if set to -1.`,
120
120
Type : framework .TypeCommaStringSlice ,
121
121
Description : `Comma-separated list of 'aud' claims that are valid for login; any match is sufficient` ,
122
122
},
123
- "bound_audience_disregard_trailing_slash" : {
124
- Type : framework .TypeBool ,
125
- Description : `If true, ignores the trailing slash in each bound audience when matching the audience claim in the token.` ,
126
- },
127
123
"bound_claims_type" : {
128
124
Type : framework .TypeString ,
129
125
Description : `How to interpret values in the map of claims/values (which must match for login): allowed values are 'string' or 'glob'` ,
@@ -143,7 +139,7 @@ Defaults to 60 (1 minute) if set to 0 and can be disabled if set to -1.`,
143
139
},
144
140
"user_claim_json_pointer" : {
145
141
Type : framework .TypeBool ,
146
- Description : `If true, the user_claim value will use JSON pointer syntax
142
+ Description : `If true, the user_claim value will use JSON pointer syntax
147
143
for referencing claims.` ,
148
144
},
149
145
"groups_claim" : {
@@ -160,13 +156,13 @@ for referencing claims.`,
160
156
},
161
157
"verbose_oidc_logging" : {
162
158
Type : framework .TypeBool ,
163
- Description : `Log received OIDC tokens and claims when debug-level logging is active.
164
- Not recommended in production since sensitive information may be present
159
+ Description : `Log received OIDC tokens and claims when debug-level logging is active.
160
+ Not recommended in production since sensitive information may be present
165
161
in OIDC responses.` ,
166
162
},
167
163
"max_age" : {
168
164
Type : framework .TypeDurationSecond ,
169
- Description : `Specifies the allowable elapsed time in seconds since the last time the
165
+ Description : `Specifies the allowable elapsed time in seconds since the last time the
170
166
user was actively authenticated.` ,
171
167
},
172
168
},
@@ -462,26 +458,6 @@ func (b *jwtAuthBackend) pathRoleCreateUpdate(ctx context.Context, req *logical.
462
458
role .BoundAudiences = boundAudiences .([]string )
463
459
}
464
460
465
- // disregard the trailing slash (if it exists) on all bound audiences if the flag is set
466
- if _ , ok := data .GetOk ("bound_audience_disregard_trailing_slash" ); ok {
467
- boundAudiences := []string {}
468
- processed := map [string ]bool {} // used to prevent duplicate entries
469
-
470
- for _ , audience := range role .BoundAudiences {
471
- // trim the trailing slash from the audience if it exists
472
- audienceWithoutTrailingSlash := strings .TrimRight (audience , "/" )
473
-
474
- // add the audience to the list of bound audiences if the audience
475
- // without the trailing slash has not already been processed
476
- if _ , ok := processed [audienceWithoutTrailingSlash ]; ! ok {
477
- boundAudiences = append (boundAudiences , audienceWithoutTrailingSlash )
478
- processed [audienceWithoutTrailingSlash ] = true
479
- }
480
- }
481
-
482
- role .BoundAudiences = boundAudiences
483
- }
484
-
485
461
if boundSubject , ok := data .GetOk ("bound_subject" ); ok {
486
462
role .BoundSubject = boundSubject .(string )
487
463
}
0 commit comments