diff --git a/src/Alethic.Auth0.Operator/Controllers/V1ResourceServerController.cs b/src/Alethic.Auth0.Operator/Controllers/V1ResourceServerController.cs index 9f103d0..5e9b5d1 100644 --- a/src/Alethic.Auth0.Operator/Controllers/V1ResourceServerController.cs +++ b/src/Alethic.Auth0.Operator/Controllers/V1ResourceServerController.cs @@ -84,7 +84,7 @@ protected override async Task UpdateApi(IManagementApiClient api, string id, Res /// protected override Task ApplyStatus(IManagementApiClient api, V1ResourceServer entity, Hashtable lastConf, CancellationToken cancellationToken) { - var identifier = ((dynamic)lastConf).identifier; + var identifier = (string?)lastConf["identifier"]; if (string.IsNullOrWhiteSpace(identifier)) throw new InvalidOperationException($"{EntityTypeName} {entity.Namespace()}/{entity.Name()} has missing Identifier.");