File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed
Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -138,8 +138,8 @@ pub struct NotaryClient {
138138 /// in notary server.
139139 #[ builder( setter( into, strip_option) , default ) ]
140140 api_key : Option < String > ,
141- /// JWT token used to callnotary server endpoints if JWT authorization is enabled
142- /// in notary server.
141+ /// JWT token used to callnotary server endpoints if JWT authorization is
142+ /// enabled in notary server.
143143 #[ builder( setter( into, strip_option) , default ) ]
144144 jwt : Option < String > ,
145145 /// The duration of notarization request timeout in seconds.
Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ impl NotaryServerProperties {
6161 public_key_path,
6262 claims,
6363 } ) => AuthorizationModeProperties :: Jwt ( JwtAuthorizationProperties {
64- algorithm : algorithm. clone ( ) ,
64+ algorithm : * algorithm,
6565 public_key_path : prepend_file_path ( public_key_path, & parent_dir) ?,
6666 claims : claims. clone ( ) ,
6767 } ) ,
@@ -178,7 +178,8 @@ impl AuthorizationModeProperties {
178178pub struct JwtAuthorizationProperties {
179179 /// Algorithm used for signing the JWT
180180 pub algorithm : Algorithm ,
181- /// File path to JWT public key (in PEM format) for verifying token signatures
181+ /// File path to JWT public key (in PEM format) for verifying token
182+ /// signatures
182183 pub public_key_path : String ,
183184 /// Set of required JWT claims
184185 #[ serde( default ) ]
You can’t perform that action at this time.
0 commit comments