Skip to content

Commit 69e40fe

Browse files
committed
fix(Sdk): Removed the StateDataFilter, which was an artifact from a previous refactor
fix(Sdk): Fixed the AuthenticationDefinition, which was not properly setting the properties, when assigned
1 parent 0577d09 commit 69e40fe

File tree

2 files changed

+3
-47
lines changed

2 files changed

+3
-47
lines changed

src/ServerlessWorkflow.Sdk/Models/AuthenticationDefinition.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,12 +99,13 @@ public virtual AuthenticationProperties Properties
9999
case OAuth2AuthenticationProperties:
100100
this.Scheme = AuthenticationScheme.OAuth2;
101101
break;
102-
case SecretBasedAuthenticationProperties:
102+
case SecretBasedAuthenticationProperties secretBasedProperties:
103+
this.PropertiesValue = secretBasedProperties.Secret;
103104
break;
104105
default:
105106
throw new NotSupportedException($"The specified authentication info type '{value.GetType()}' is not supported");
106107
}
107-
this.PropertiesValue = DynamicObject.FromObject(value);
108+
this.PropertiesValue = DynamicObject.FromObject(value)!;
108109
}
109110
}
110111

src/ServerlessWorkflow.Sdk/Models/StateDataFilter.cs

Lines changed: 0 additions & 45 deletions
This file was deleted.

0 commit comments

Comments
 (0)