@@ -26,7 +26,7 @@ public OpenIdConnectSettings(SettingsRootNamespace rootNamespace, bool validateC
2626 ValidateIssuerSigningKey = SettingsReader . Read ( rootNamespace , "Authentication.ValidateIssuerSigningKey" , true ) ;
2727 RequireHttpsMetadata = SettingsReader . Read ( rootNamespace , "Authentication.RequireHttpsMetadata" , true ) ;
2828 ServicePulseClientId = SettingsReader . Read < string > ( rootNamespace , "Authentication.ServicePulse.ClientId" ) ;
29- ServicePulseApiScope = SettingsReader . Read < string > ( rootNamespace , "Authentication.ServicePulse.ApiScope " ) ;
29+ ServicePulseApiScopes = SettingsReader . Read < string > ( rootNamespace , "Authentication.ServicePulse.ApiScopes " ) ;
3030 ServicePulseAuthority = SettingsReader . Read < string > ( rootNamespace , "Authentication.ServicePulse.Authority" ) ;
3131
3232 if ( validateConfiguration )
@@ -65,8 +65,8 @@ public OpenIdConnectSettings(SettingsRootNamespace rootNamespace, bool validateC
6565 [ JsonPropertyName ( "servicePulseClientId" ) ]
6666 public string ServicePulseClientId { get ; }
6767
68- [ JsonPropertyName ( "servicePulseApiScope " ) ]
69- public string ServicePulseApiScope { get ; }
68+ [ JsonPropertyName ( "servicePulseApiScopes " ) ]
69+ public string ServicePulseApiScopes { get ; }
7070
7171 void Validate ( )
7272 {
@@ -128,9 +128,9 @@ void Validate()
128128 throw new Exception ( "Authentication.ServicePulse.ClientId is required when Authentication.ServicePulse.Enabled is true." ) ;
129129 }
130130
131- if ( string . IsNullOrWhiteSpace ( ServicePulseApiScope ) )
131+ if ( string . IsNullOrWhiteSpace ( ServicePulseApiScopes ) )
132132 {
133- throw new Exception ( "Authentication.ServicePulse.ApiScope is required when Authentication.ServicePulse.Enabled is true." ) ;
133+ throw new Exception ( "Authentication.ServicePulse.ApiScopes is required when Authentication.ServicePulse.Enabled is true." ) ;
134134 }
135135
136136 if ( ServicePulseAuthority != null && ! Uri . TryCreate ( ServicePulseAuthority , UriKind . Absolute , out _ ) )
@@ -148,6 +148,6 @@ void Validate()
148148 logger . LogInformation ( " RequireHttpsMetadata: {RequireHttpsMetadata}" , RequireHttpsMetadata ) ;
149149 logger . LogInformation ( " ServicePulseClientId: {ServicePulseClientId}" , ServicePulseClientId ) ;
150150 logger . LogInformation ( " ServicePulseAuthority: {ServicePulseAuthority}" , ServicePulseAuthority ) ;
151- logger . LogInformation ( " ServicePulseApiScope : {ServicePulseApiScope }" , ServicePulseApiScope ) ;
151+ logger . LogInformation ( " ServicePulseApiScopes : {ServicePulseApiScopes }" , ServicePulseApiScopes ) ;
152152 }
153153}
0 commit comments