File tree 1 file changed +6
-1
lines changed
components/server/src/auth 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -73,7 +73,7 @@ export class GenericAuthProvider implements AuthProvider {
73
73
@postConstruct ( )
74
74
init ( ) {
75
75
this . initAuthUserSetup ( ) ;
76
- log . info ( `(${ this . strategyName } ) Initialized.` , { defaultStrategyOptions : this . defaultStrategyOptions } ) ;
76
+ log . info ( `(${ this . strategyName } ) Initialized.` , { sanitizedStrategyOptions : this . sanitizedStrategyOptions } ) ;
77
77
}
78
78
79
79
get info ( ) : AuthProviderInfo {
@@ -756,6 +756,11 @@ export class GenericAuthProvider implements AuthProvider {
756
756
return false ;
757
757
}
758
758
759
+ protected get sanitizedStrategyOptions ( ) : Omit < StrategyOptionsWithRequest , "clientSecret" > {
760
+ const { clientSecret, ...sanitizedOptions } = this . defaultStrategyOptions ;
761
+ return sanitizedOptions ;
762
+ }
763
+
759
764
protected get defaultStrategyOptions ( ) : StrategyOptionsWithRequest {
760
765
const {
761
766
authorizationUrl,
You can’t perform that action at this time.
0 commit comments