4

我正在尝试在不需要 SSO 的应用程序中使用 Okta 进行身份验证,只是针对 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.
4

0 回答 0