You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/core/Synapse.Core.Infrastructure.Containers.Docker/Synapse.Core.Infrastructure.Containers.Docker.csproj
Copy file name to clipboardExpand all lines: src/core/Synapse.Core.Infrastructure.Containers.Kubernetes/Synapse.Core.Infrastructure.Containers.Kubernetes.csproj
@@ -41,28 +45,28 @@ public class AuthorizationInfo(string scheme, string parameter)
41
45
/// <summary>
42
46
/// Creates a new <see cref="AuthorizationInfo"/> based on the specified <see cref="AuthenticationPolicyDefinition"/>
43
47
/// </summary>
44
-
/// <param name="workflow">The <see cref="WorkflowDefinition"/> that defines the <see cref="AuthenticationPolicyDefinition"/> to create a new <see cref="AuthorizationInfo"/> for</param>
45
48
/// <param name="authentication">The <see cref="AuthenticationPolicyDefinition"/> to create a new <see cref="AuthorizationInfo"/> for</param>
46
49
/// <param name="serviceProvider">The current <see cref="IServiceProvider"/></param>
50
+
/// <param name="workflow">The <see cref="WorkflowDefinition"/>, if any, that defines the <see cref="AuthenticationPolicyDefinition"/> to create a new <see cref="AuthorizationInfo"/> for</param>
if(workflow.Use?.Authentications?.TryGetValue(authentication.Use,outAuthenticationPolicyDefinition?referencedAuthentication)!=true||referencedAuthentication==null)thrownewNullReferenceException($"Failed to find the specified authentication policy '{authentication.Use}'");
61
+
if(workflow?.Use?.Authentications?.TryGetValue(authentication.Use,outAuthenticationPolicyDefinition?referencedAuthentication)!=true||referencedAuthentication==null)thrownewNullReferenceException($"Failed to find the specified authentication policy '{authentication.Use}'");
varsecretsManager=serviceProvider.GetService<ISecretsManager>()??thrownewNotSupportedException("Secret based authentication is not supported in this context");
0 commit comments