File tree Expand file tree Collapse file tree 1 file changed +15
-2
lines changed
src/Identity/ApiAuthorization.IdentityServer/src/Configuration Expand file tree Collapse file tree 1 file changed +15
-2
lines changed Original file line number Diff line number Diff line change @@ -52,8 +52,21 @@ public SigningCredentials LoadKey()
5252 return null ;
5353 }
5454
55- var key = new KeyDefinition ( ) ;
56- _configuration . Bind ( key ) ;
55+ var key = new KeyDefinition ( )
56+ {
57+ Type = _configuration [ nameof ( KeyDefinition . Type ) ] ,
58+ FilePath = _configuration [ nameof ( KeyDefinition . FilePath ) ] ,
59+ Password = _configuration [ nameof ( KeyDefinition . Password ) ] ,
60+ Name = _configuration [ nameof ( KeyDefinition . Name ) ] ,
61+ StoreLocation = _configuration [ nameof ( KeyDefinition . StoreLocation ) ] ,
62+ StoreName = _configuration [ nameof ( KeyDefinition . StoreName ) ] ,
63+ StorageFlags = _configuration [ nameof ( KeyDefinition . StorageFlags ) ]
64+ } ;
65+
66+ if ( bool . TryParse ( _configuration [ nameof ( KeyDefinition . Persisted ) ] , out var value ) )
67+ {
68+ key . Persisted = value ;
69+ }
5770
5871 switch ( key . Type )
5972 {
You can’t perform that action at this time.
0 commit comments