Hi I am trying to use the Okta sdk to manage users within my API.
I new up the client like below
var client = new OktaClient(new OktaClientConfiguration{
OktaDomain = “https://{mydomain}”,
Token = “my token”
});
I even tried with a clientId and setting the authMode.SSWS but get the following exeception.
System.MissingMethodException: Method not found: ‘System.Collections.Generic.IDictionary`2<YamlDotNet.RepresentationModel.YamlNode,YamlDotNet.RepresentationModel.YamlNode> YamlDotNet.RepresentationModel.YamlMappingNode.get_Children()’.
at FlexibleConfiguration.Providers.YamlVisitors.YamlVisitorBase.VisitChildren(YamlMappingNode mapping)
at FlexibleConfiguration.Providers.YamlVisitors.ContextAwareMappingVisitor.Visit(YamlMappingNode mapping)
at FlexibleConfiguration.Providers.YamlVisitors.YamlVisitorBase.YamlDotNet.RepresentationModel.IYamlVisitor.Visit(YamlMappingNode mapping)
at YamlDotNet.RepresentationModel.YamlMappingNode.Accept(IYamlVisitor visitor)
at FlexibleConfiguration.Providers.YamlVisitors.ContextAwareVisitor.Visit(YamlMappingNode mapping)
at FlexibleConfiguration.Providers.YamlVisitors.YamlVisitorBase.YamlDotNet.RepresentationModel.IYamlVisitor.Visit(YamlMappingNode mapping)
at YamlDotNet.RepresentationModel.YamlMappingNode.Accept(IYamlVisitor visitor)
at FlexibleConfiguration.Providers.YamlVisitors.YamlVisitorBase.VisitChildren(YamlDocument document)
at FlexibleConfiguration.Providers.YamlVisitors.YamlVisitorBase.Visit(YamlDocument document)
at FlexibleConfiguration.Providers.YamlVisitors.YamlVisitorBase.YamlDotNet.RepresentationModel.IYamlVisitor.Visit(YamlDocument document)
at YamlDotNet.RepresentationModel.YamlDocument.Accept(IYamlVisitor visitor)
at FlexibleConfiguration.Providers.YamlVisitors.YamlVisitorBase.VisitChildren(YamlStream stream)
at FlexibleConfiguration.Providers.YamlVisitors.YamlVisitorBase.Visit(YamlStream stream)
at FlexibleConfiguration.Providers.YamlVisitors.YamlVisitorBase.YamlDotNet.RepresentationModel.IYamlVisitor.Visit(YamlStream stream)
at YamlDotNet.RepresentationModel.YamlStream.Accept(IYamlVisitor visitor)
at FlexibleConfiguration.Providers.YamlParser.Parse(Stream input)
at FlexibleConfiguration.Providers.YamlProvider.Load()
at FlexibleConfiguration.ConfigurationBuilder.Add(IConfigurationProvider provider)
at FlexibleConfiguration.ConfigurationBuilderProviderExtensions.AddJson(IConfigurationBuilder builder, String json, String root, ILogger logger)
at FlexibleConfiguration.ConfigurationBuilderProviderExtensions.AddJsonFile(IConfigurationBuilder builder, String filePath, Boolean optional, String root, ILogger logger)
at Okta.Sdk.OktaClient.GetConfigurationOrDefault(OktaClientConfiguration apiClientConfiguration)
at Okta.Sdk.OktaClient…ctor(OktaClientConfiguration apiClientConfiguration, ILogger logger, ISerializer serializer)