我正在尝试在我的应用程序中使用Okta进行身份验证,该应用程序不需要SSO,只是针对Okta验证用户详细信息,然后继续检查其他系统是否失败。 API有点稀疏,但我正在尝试以下
var oktaClient = new OktaClient("my-api-token", new Uri("https://mysubdomain.okta.com"));
var authClient = oktaClient.GetAuthClient();
var oktaResponse = authClient.Authenticate(username, password);
最后一行抛出Okta.Core.OktaException。详情如下:
Error making an HTTP request: One or more errors occurred.
Additional information: Error making an HTTP request: One or more errors occurred.