
ChinB.27258 (Customer) asked a question.
- var apikey = "somekey"; var env = "https://dev-999999.oktapreview.com"; var username = "user@company.com"; var pwd = "somepwd"; var oktaClient = new OktaClient(apikey, new Uri(env)); var authClient = oktaClient.GetAuthClient(); var result = authClient.Authenticate(username, pwd); //On 2nd try comment this out. There will be no exception var appClient = oktaClient.GetAppsClient(); var applist = appClient.GetList(); //throws exception if AuthClient.Authenticate() is called
If this is by design, is there a way to do a user challenge without authenticating? My goal is challenge the user and then check if the user has access rights to the application. There's no way to do this if all calls subsequent to AuthClient.Authenticate() throw exceptions.
Hello!
This was resolved privately through a support case. If you have questions with a more complexity it's probably best just to file a ticket.